Text Generation
Transformers
Safetensors
English
gemma4_text
udgamlabs
math
verifier
reranker
program-aided
gsm8k
small-model
Instructions to use udgamlabs/Lilavati-Checker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use udgamlabs/Lilavati-Checker with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="udgamlabs/Lilavati-Checker")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("udgamlabs/Lilavati-Checker") model = AutoModelForCausalLM.from_pretrained("udgamlabs/Lilavati-Checker", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use udgamlabs/Lilavati-Checker with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "udgamlabs/Lilavati-Checker" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "udgamlabs/Lilavati-Checker", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/udgamlabs/Lilavati-Checker
- SGLang
How to use udgamlabs/Lilavati-Checker with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "udgamlabs/Lilavati-Checker" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "udgamlabs/Lilavati-Checker", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "udgamlabs/Lilavati-Checker" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "udgamlabs/Lilavati-Checker", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use udgamlabs/Lilavati-Checker with Docker Model Runner:
docker model run hf.co/udgamlabs/Lilavati-Checker
Download config.json from udgamlabs/Lilavati-Checker: direct link, hf CLI and curl.
- Browser
- Download file 1.55 kB
-
https://huggingface.co/udgamlabs/Lilavati-Checker/resolve/main/config.json
- Command line
-
hf download hf://udgamlabs/Lilavati-Checker/config.json
-
curl -L -o config.json https://huggingface.co/udgamlabs/Lilavati-Checker/resolve/main/config.json
1.55 kB
| { | |
| "architectures": [ | |
| "Gemma4ForCausalLM" | |
| ], | |
| "model_type": "gemma4_text", | |
| "vocab_size": 32768, | |
| "hidden_size": 640, | |
| "intermediate_size": 2560, | |
| "num_hidden_layers": 12, | |
| "num_attention_heads": 10, | |
| "num_key_value_heads": 2, | |
| "head_dim": 64, | |
| "global_head_dim": 128, | |
| "per_layer_config": { | |
| "3": { | |
| "head_dim": 128 | |
| }, | |
| "7": { | |
| "head_dim": 128 | |
| }, | |
| "11": { | |
| "head_dim": 128 | |
| } | |
| }, | |
| "hidden_activation": "gelu_pytorch_tanh", | |
| "max_position_embeddings": 16384, | |
| "rms_norm_eps": 1e-06, | |
| "sliding_window": 512, | |
| "layer_types": [ | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "sliding_attention", | |
| "full_attention" | |
| ], | |
| "final_logit_softcapping": 15.0, | |
| "tie_word_embeddings": true, | |
| "hidden_size_per_layer_input": 0, | |
| "vocab_size_per_layer_input": 32768, | |
| "num_kv_shared_layers": 0, | |
| "use_double_wide_mlp": false, | |
| "attention_k_eq_v": false, | |
| "enable_moe_block": false, | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "use_cache": true, | |
| "rope_parameters": { | |
| "sliding_attention": { | |
| "rope_type": "default", | |
| "rope_theta": 10000.0 | |
| }, | |
| "full_attention": { | |
| "rope_type": "proportional", | |
| "partial_rotary_factor": 1.0, | |
| "rope_theta": 1000000.0 | |
| } | |
| }, | |
| "pad_token_id": 0, | |
| "eos_token_id": 1, | |
| "bos_token_id": 2, | |
| "dtype": "bfloat16" | |
| } |