Commit 65becf0
authored
Add ut for tf_transformers (#327)
## Summary
Add ut for tf_transformers
## Details
add ut for tf_transformers from 31% to 100%
<img width="1784" height="1428" alt="123667c9d71dcbdc198ebe2b84ba75a6"
src="https://github.com/user-attachments/assets/d2626a5f-38d3-4fdc-93b1-550bd4d95089"
/>
<img width="2398" height="934" alt="aa0509b6f9f134509a0d762f2a218fe4"
src="https://github.com/user-attachments/assets/29abc522-70e6-484b-87a4-7cd8b52a3cf7"
/>
## Test Plan
pytest -v tests/unit/utils/test_hf_transformers.py
<img width="1980" height="528" alt="0bd1b89ca91755096c162a4c82c11faa"
src="https://github.com/user-attachments/assets/f3df55a3-efcc-468f-987a-f4105c36060f"
/>
pytest --cov=guidellm tests/unit/utils
<img width="1916" height="540" alt="b975004df7a4a63e8272a43d00ca057f"
src="https://github.com/user-attachments/assets/db6cbffa-54bc-44a3-aa88-889dc6420207"
/>
<img width="2398" height="934" alt="aa0509b6f9f134509a0d762f2a218fe4"
src="https://github.com/user-attachments/assets/75a50ec6-c99f-4560-bf9d-8b2bcc6eb224"
/>
## Related Issues
- Resolves # none
---
- [x] "I certify that all code in this PR is my own, except as noted
below."
## Use of AI
- [x] Includes AI-assisted code completion
- [ ] Includes code generated by an AI application
- [ ] Includes AI-generated tests (NOTE: AI written tests should have a
docstring that includes `## WRITTEN BY AI ##`)1 file changed
+40
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments