[Styling] stylify using ruff (#27144)
* try to stylify using ruff * might need to remove these changes? * use ruf format andruff check * use isinstance instead of type comparision * use # fmt: skip * use # fmt: skip * nits * soem styling changes * update ci job * nits isinstance * more files update * nits * more nits * small nits * check and format * revert wrong changes * actually use formatter instead of checker * nits * well docbuilder is overwriting this commit * revert notebook changes * try to nuke docbuilder * style * fix feature exrtaction test * remve `indent-width = 4` * fixup * more nits * update the ruff version that we use * style * nuke docbuilder styling * leve the print for detected changes * nits * Remove file I/O Co-authored-by: charliermarsh <charlie.r.marsh@gmail.com> * style * nits * revert notebook changes * Add # fmt skip when possible * Add # fmt skip when possible * Fix * More ` # fmt: skip` usage * More ` # fmt: skip` usage * More ` # fmt: skip` usage * NIts * more fixes * fix tapas * Another way to skip * Recommended way * Fix two more fiels * Remove asynch Remove asynch --------- Co-authored-by: charliermarsh <charlie.r.marsh@gmail.com>
This commit is contained in:
@@ -699,9 +699,7 @@ class BloomEmbeddingTest(unittest.TestCase):
|
||||
},
|
||||
}
|
||||
|
||||
# fmt: off
|
||||
EXAMPLE_IDS = [3478, 368, 109586, 35433, 2, 77, 132619, 3478, 368, 109586, 35433, 2, 2175, 23714, 73173, 144252, 2, 77, 132619, 3478]
|
||||
# fmt: on
|
||||
EXAMPLE_IDS = [3478, 368, 109586, 35433, 2, 77, 132619, 3478, 368, 109586, 35433, 2, 2175, 23714, 73173, 144252, 2, 77, 132619, 3478] # fmt: skip
|
||||
|
||||
EMBEDDINGS_DS_AFTER_LN_MEAN = {
|
||||
3478: -6.580352783203125e-05,
|
||||
@@ -782,9 +780,7 @@ class BloomEmbeddingTest(unittest.TestCase):
|
||||
)
|
||||
model.eval()
|
||||
|
||||
# fmt: off
|
||||
EXAMPLE_IDS = [3478, 368, 109586, 35433, 2, 77, 132619, 3478, 368, 109586, 35433, 2, 2175, 23714, 73173, 144252, 2, 77, 132619, 3478]
|
||||
# fmt: on
|
||||
EXAMPLE_IDS = [3478, 368, 109586, 35433, 2, 77, 132619, 3478, 368, 109586, 35433, 2, 2175, 23714, 73173, 144252, 2, 77, 132619, 3478] # fmt: skip
|
||||
|
||||
MEAN_VALUE_LAST_LM = -4.3392181396484375e-05
|
||||
MIN_MAX_DICT = {"min": -2.0625, "max": 2.75}
|
||||
@@ -812,9 +808,7 @@ class BloomEmbeddingTest(unittest.TestCase):
|
||||
) # load in bf16
|
||||
model.eval()
|
||||
|
||||
# fmt: off
|
||||
EXAMPLE_IDS = [3478, 368, 109586, 35433, 2, 77, 132619, 3478, 368, 109586, 35433, 2, 2175, 23714, 73173, 144252, 2, 77, 132619, 3478]
|
||||
# fmt: on
|
||||
EXAMPLE_IDS = [3478, 368, 109586, 35433, 2, 77, 132619, 3478, 368, 109586, 35433, 2, 2175, 23714, 73173, 144252, 2, 77, 132619, 3478] # fmt: skip
|
||||
|
||||
MEAN_LOGITS_GPU_1 = -1.823902130126953e-05
|
||||
MEAN_LOGITS_GPU_2 = 1.9431114196777344e-05
|
||||
|
||||
Reference in New Issue
Block a user