Spaces:
Running on Zero
Running on Zero
Download generation_limits.py from leeennn009/LABEQ: direct link, hf CLI and curl.
- Browser
- Download file 259 Bytes
-
https://huggingface.co/spaces/leeennn009/LABEQ/resolve/main/generation_limits.py
- Command line
-
hf download hf://spaces/leeennn009/LABEQ/generation_limits.py
-
curl -L -o generation_limits.py https://huggingface.co/spaces/leeennn009/LABEQ/resolve/main/generation_limits.py
259 Bytes
| """Signal incomplete provider output without presenting it as a finished reply.""" | |
| class GenerationBudgetError(RuntimeError): | |
| def __init__(self, text): | |
| super().__init__("Model output exhausted its token budget") | |
| self.partial_text = text | |