Text Generation
Transformers
Safetensors
English
gemma4_text
udgamlabs
gemma4
tool-calling
function-calling
on-device
json-extraction
shell
from-scratch
conversational
Instructions to use udgamlabs/Udgam-384M-Chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use udgamlabs/Udgam-384M-Chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="udgamlabs/Udgam-384M-Chat") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("udgamlabs/Udgam-384M-Chat") model = AutoModelForCausalLM.from_pretrained("udgamlabs/Udgam-384M-Chat", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use udgamlabs/Udgam-384M-Chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "udgamlabs/Udgam-384M-Chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "udgamlabs/Udgam-384M-Chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/udgamlabs/Udgam-384M-Chat
- SGLang
How to use udgamlabs/Udgam-384M-Chat 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/Udgam-384M-Chat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "udgamlabs/Udgam-384M-Chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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/Udgam-384M-Chat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "udgamlabs/Udgam-384M-Chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use udgamlabs/Udgam-384M-Chat with Docker Model Runner:
docker model run hf.co/udgamlabs/Udgam-384M-Chat
Commit History
2 days ago
-
Brand: footer, opening lines, links (founder's yes on 2026-11-30)
Verified signatureb28fa11
15 days ago
-
Card: Fine-tune it (LoRA notebook, Open in Colab)
Verified signature3f7bae0
23 days ago
-
Link this card's page on udgamlabs.com
Verified signature19e1899
-
Brand v2.1: banner on the white light ground
Verified signatured3feca0 -
Brand v2: banner, eyebrow, About footer, 'Where it falls short'; Udgam Labs name, lowercase ids
Verified signaturef389fb5
-
TECHNICAL_REPORT.md: replaced by the full report at udgamlabs.com/reports/udgam-384m
Verified signatureaf005e4 -
Card: technical report now at udgamlabs.com/reports/udgam-384m
Verified signaturee0f679f -
Card: XSTest figure by scorer (54% classifier; LLM judge 56.5%), Qwen3-0.6B ~1.6x params, 'Udgam Labs' naming
Verified signature81895ca
-
Model card metadata: set base_model / base_model_relation for the HF model tree
Verified signature17852ca
-
Fix: tokenizer prepends <bos> for plain-text inputs (matches training and the GGUF builds)
Verified signaturebd39c02
-
Udgam-384M release
8aa62c5