Text Generation
MLX
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-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use udgamlabs/Udgam-384M-Chat-MLX with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("udgamlabs/Udgam-384M-Chat-MLX") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use udgamlabs/Udgam-384M-Chat-MLX with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "udgamlabs/Udgam-384M-Chat-MLX"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "udgamlabs/Udgam-384M-Chat-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use udgamlabs/Udgam-384M-Chat-MLX with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "udgamlabs/Udgam-384M-Chat-MLX"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "udgamlabs/Udgam-384M-Chat-MLX" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "udgamlabs/Udgam-384M-Chat-MLX", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use udgamlabs/Udgam-384M-Chat-MLX with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "udgamlabs/Udgam-384M-Chat-MLX"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default udgamlabs/Udgam-384M-Chat-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use udgamlabs/Udgam-384M-Chat-MLX with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "udgamlabs/Udgam-384M-Chat-MLX"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "udgamlabs/Udgam-384M-Chat-MLX" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Card: technical report now at udgamlabs.com/reports/udgam-384m
Browse files
README.md
CHANGED
|
@@ -39,7 +39,7 @@ jobs inside an app:
|
|
| 39 |
**What it is not:** a knowledgeable general assistant (at 384M parameters it makes factual mistakes), or a
|
| 40 |
safety-hardened open chatbot. Use it where *your app* decides which tools exist and confirms risky actions.
|
| 41 |
|
| 42 |
-
**Model family:** [Udgam-384M-Base](https://huggingface.co/UdgamLabs/Udgam-384M-Base) (2,048 context) · [Udgam-384M-Base-4K](https://huggingface.co/UdgamLabs/Udgam-384M-Base-4K) · [Udgam-384M-Chat](https://huggingface.co/UdgamLabs/Udgam-384M-Chat) · [GGUF](https://huggingface.co/UdgamLabs/Udgam-384M-Chat-GGUF) · [MLX](https://huggingface.co/UdgamLabs/Udgam-384M-Chat-MLX) · [MLX 4-bit](https://huggingface.co/UdgamLabs/Udgam-384M-Chat-MLX-4bit) · **[Technical report](https://
|
| 43 |
|
| 44 |
| | |
|
| 45 |
|---|---|
|
|
@@ -316,7 +316,7 @@ email → JSON with a given schema; suggesting shell commands for a person to re
|
|
| 316 |
|
| 317 |
Pretrained from scratch on roughly 8B tokens of licensed public and synthetic text (base:
|
| 318 |
[Udgam-384M-Base-4K](https://huggingface.co/UdgamLabs/Udgam-384M-Base-4K)), then post-trained with supervised fine-tuning for chat and tool use.
|
| 319 |
-
See the [technical report](https://
|
| 320 |
|
| 321 |
## Licence
|
| 322 |
|
|
@@ -330,7 +330,7 @@ Apache-2.0 (weights and tokenizer); see `LICENSE`. The chat template is the offi
|
|
| 330 |
author = {{Udgam Labs}},
|
| 331 |
year = {2026},
|
| 332 |
howpublished = {\url{https://huggingface.co/UdgamLabs/Udgam-384M-Chat}},
|
| 333 |
-
note = {Technical report:
|
| 334 |
}
|
| 335 |
```
|
| 336 |
|
|
|
|
| 39 |
**What it is not:** a knowledgeable general assistant (at 384M parameters it makes factual mistakes), or a
|
| 40 |
safety-hardened open chatbot. Use it where *your app* decides which tools exist and confirms risky actions.
|
| 41 |
|
| 42 |
+
**Model family:** [Udgam-384M-Base](https://huggingface.co/UdgamLabs/Udgam-384M-Base) (2,048 context) · [Udgam-384M-Base-4K](https://huggingface.co/UdgamLabs/Udgam-384M-Base-4K) · [Udgam-384M-Chat](https://huggingface.co/UdgamLabs/Udgam-384M-Chat) · [GGUF](https://huggingface.co/UdgamLabs/Udgam-384M-Chat-GGUF) · [MLX](https://huggingface.co/UdgamLabs/Udgam-384M-Chat-MLX) · [MLX 4-bit](https://huggingface.co/UdgamLabs/Udgam-384M-Chat-MLX-4bit) · **[Technical report](https://udgamlabs.com/reports/udgam-384m)**
|
| 43 |
|
| 44 |
| | |
|
| 45 |
|---|---|
|
|
|
|
| 316 |
|
| 317 |
Pretrained from scratch on roughly 8B tokens of licensed public and synthetic text (base:
|
| 318 |
[Udgam-384M-Base-4K](https://huggingface.co/UdgamLabs/Udgam-384M-Base-4K)), then post-trained with supervised fine-tuning for chat and tool use.
|
| 319 |
+
See the [technical report](https://udgamlabs.com/reports/udgam-384m) for an overview.
|
| 320 |
|
| 321 |
## Licence
|
| 322 |
|
|
|
|
| 330 |
author = {{Udgam Labs}},
|
| 331 |
year = {2026},
|
| 332 |
howpublished = {\url{https://huggingface.co/UdgamLabs/Udgam-384M-Chat}},
|
| 333 |
+
note = {Technical report: \url{https://udgamlabs.com/reports/udgam-384m}}
|
| 334 |
}
|
| 335 |
```
|
| 336 |
|