Skip to content

Commit f91cb97

Browse files
fix logbar api usage (#1345)
* fix logbar api usage * [CI] install logbar
1 parent 6a3c04e commit f91cb97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/unit_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ jobs:
387387

388388
- name: Install wheel
389389
run: |
390-
uv pip install colorlog git+https://github.com/ModelCloud/Tokenicer -U
390+
uv pip install colorlog logbar git+https://github.com/ModelCloud/Tokenicer -U
391391
echo "===== install optimum bitblas parameterized uvicorn ====="
392392
uv pip install optimum bitblas==0.0.1.dev13 parameterized uvicorn -i http://${{ needs.check-vm.outputs.ip }}/simple/ --trusted-host ${{ needs.check-vm.outputs.ip }} --extra-index-url https://pypi.org/simple
393393
echo "===== install dist/whl ====="
@@ -547,7 +547,7 @@ jobs:
547547

548548
- name: Install wheel
549549
run: |
550-
uv pip install -U transformers colorlog
550+
uv pip install -U transformers colorlog logbar
551551
if [ "${{ matrix.test_script }}" == "test_perplexity" ] || \
552552
[ "${{ matrix.test_script }}" == "test_q4_bitblas" ] || \
553553
[ "${{ matrix.test_script }}" == "test_save_loaded_quantized_model" ]; then

tests/inference_speed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def inference(self, model_path, backend, tokens_per_second, assert_result=True,
9595
print(f"New Token Per Second: {avg_tokens_per_second} token/s")
9696
print(f"**************** {backend} Warm-up Result Info End****************")
9797

98-
pb = ProgressBar(range(self.NUM_RUNS)).title("Run")
98+
pb = logger.pb(range(self.NUM_RUNS)).title("Run")
9999
for _ in pb:
100100
start_time = time.time()
101101
result = model.generate(**inp, max_new_tokens=self.MAX_NEW_TOKENS, pad_token_id=tokenizer.pad_token_id)

0 commit comments

Comments
 (0)