Spaces:
Running on Zero
Running on Zero
Download core/__init__.py from drinkmoonshine/parallel-constrained-decoding: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/spaces/drinkmoonshine/parallel-constrained-decoding/resolve/main/core/__init__.py
- Command line
-
hf download hf://spaces/drinkmoonshine/parallel-constrained-decoding/core/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/drinkmoonshine/parallel-constrained-decoding/resolve/main/core/__init__.py
663 Bytes
| """ | |
| Parallel Constrained Structured Generation Engine. | |
| """ | |
| from core.schema import StructuredSchema, FieldDefinition | |
| from core.engine import ( | |
| get_engine, | |
| run_parallel_generation, | |
| run_naive_generation, | |
| stream_naive_generation, | |
| # Backward compatibility | |
| run_rlcd_generation, | |
| ) | |
| from core.prompt_builder import ( | |
| build_naive_json_prompt, | |
| build_parallel_field_prompts, | |
| ) | |
| __all__ = [ | |
| "StructuredSchema", | |
| "FieldDefinition", | |
| "get_engine", | |
| "run_parallel_generation", | |
| "run_naive_generation", | |
| "stream_naive_generation", | |
| "build_naive_json_prompt", | |
| "build_parallel_field_prompts", | |
| "run_rlcd_generation", | |
| ] | |