Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/test_cuda/algorithms/test_auto_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def test_gguf(self):
model, layer_config = ar.quantize()
avg_bits, _ = compute_avg_bits_for_model(model, ignore_scale_zp_bits=True)
print(avg_bits)
assert target_bits - 0.1 < avg_bits <= target_bits + 1e-3
# Due to the tiny model and embedding, the actual number of bits of gguf format will be larger than the target bits.
assert target_bits - 0.1 < avg_bits <= target_bits + 0.3

def test_shared_layers(self, tiny_opt_model_path):
model_name = tiny_opt_model_path
Expand Down