Spaces:
Running
Running
Download PATCH.llguidance_perf from FINAL-Bench/LiteRT-LM: direct link, hf CLI and curl.
- Browser
- Download file 367 Bytes
-
https://huggingface.co/spaces/FINAL-Bench/LiteRT-LM/resolve/main/PATCH.llguidance_perf
- Command line
-
hf download hf://spaces/FINAL-Bench/LiteRT-LM/PATCH.llguidance_perf
-
curl -L -o PATCH.llguidance_perf https://huggingface.co/spaces/FINAL-Bench/LiteRT-LM/resolve/main/PATCH.llguidance_perf
367 Bytes
| --- src/earley/perf.rs | |
| +++ src/earley/perf.rs | |
| for (i, c) in s.chars().enumerate() { | |
| // Insert a comma once we've passed 'offset' and every 3 digits after that. | |
| - if i != 0 && i >= offset && (i - offset).is_multiple_of(3) { | |
| + if i != 0 && i >= offset && (i - offset) % 3 == 0 { | |
| result.push(','); | |
| } | |