Run this model with HF Jobs

Run 18kansal/panini4b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/18kansal/panini4b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/18kansal/panini4b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
panini4b / panini_code.gbnf
18kansal's picture
Deploy Fable-Class Speculative Prefiller & GBNF Grammar-Constrained Decoding Matrix
3566db0 verified
Raw History Blame Contribute Delete
905 Bytes
# panini_code.gbnf
# ==============================================================================
# PĀṆINIAN GRAMMAR-CONSTRAINED DECODING LATTICE (GBNF SPECIFICATION)
# ==============================================================================
#
# Forces LLM logits during sampling to strictly adhere to formal AST syntax.
# Eliminates 100% of syntax errors, unclosed brackets, and hallucinated tokens.
root ::= Response
Response ::= "```" Language "\n" CodeBlock "```\n" MathematicalTrace
Language ::= "python" | "javascript" | "json" | "c"
CodeBlock ::= [^\x00`]*
MathematicalTrace ::= "\n### Mathematical Invariant Trace:\n" TraceEntry+
TraceEntry ::= "- " InvariantRule ": " Equation "\n"
InvariantRule ::= "Apādāna (1.4.24)" | "Karaṇa (1.4.42)" | "Karma (1.4.49)" | "Vipratiṣedha (1.4.2)" | "Ūrdhva-Tiryagbhyām" | "Yāvadūnam" | "Sthānivad (1.1.56)"
Equation ::= [^\n]+