Instructions to use vanta-research/atom-v1-preview-8b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vanta-research/atom-v1-preview-8b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="vanta-research/atom-v1-preview-8b") 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("vanta-research/atom-v1-preview-8b") model = AutoModelForCausalLM.from_pretrained("vanta-research/atom-v1-preview-8b", 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
- llama.cpp
How to use vanta-research/atom-v1-preview-8b with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf vanta-research/atom-v1-preview-8b:Q4_0 # Run inference directly in the terminal: llama cli -hf vanta-research/atom-v1-preview-8b:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf vanta-research/atom-v1-preview-8b:Q4_0 # Run inference directly in the terminal: llama cli -hf vanta-research/atom-v1-preview-8b:Q4_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf vanta-research/atom-v1-preview-8b:Q4_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf vanta-research/atom-v1-preview-8b:Q4_0
Use Docker
docker model run hf.co/vanta-research/atom-v1-preview-8b:Q4_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use vanta-research/atom-v1-preview-8b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "vanta-research/atom-v1-preview-8b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vanta-research/atom-v1-preview-8b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/vanta-research/atom-v1-preview-8b:Q4_0
- SGLang
How to use vanta-research/atom-v1-preview-8b 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 "vanta-research/atom-v1-preview-8b" \ --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": "vanta-research/atom-v1-preview-8b", "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 "vanta-research/atom-v1-preview-8b" \ --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": "vanta-research/atom-v1-preview-8b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use vanta-research/atom-v1-preview-8b with Ollama:
ollama run hf.co/vanta-research/atom-v1-preview-8b:Q4_0
- Unsloth Desktop
- Pi
How to use vanta-research/atom-v1-preview-8b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf vanta-research/atom-v1-preview-8b:Q4_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "vanta-research/atom-v1-preview-8b:Q4_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use vanta-research/atom-v1-preview-8b with Docker Model Runner:
docker model run hf.co/vanta-research/atom-v1-preview-8b:Q4_0
- Lemonade
How to use vanta-research/atom-v1-preview-8b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull vanta-research/atom-v1-preview-8b:Q4_0
Run and chat with the model
lemonade run user.atom-v1-preview-8b-Q4_0
List all available models
lemonade list
- Hermes Agent
How to use vanta-research/atom-v1-preview-8b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf vanta-research/atom-v1-preview-8b:Q4_0
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 vanta-research/atom-v1-preview-8b:Q4_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use vanta-research/atom-v1-preview-8b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf vanta-research/atom-v1-preview-8b:Q4_0
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 "vanta-research/atom-v1-preview-8b:Q4_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download USAGE.md from vanta-research/atom-v1-preview-8b: direct link, hf CLI and curl.
- Browser
- Download file 4.59 kB
-
https://huggingface.co/vanta-research/atom-v1-preview-8b/resolve/main/USAGE.md
- Command line
-
hf download hf://vanta-research/atom-v1-preview-8b/USAGE.md
-
curl -L -o USAGE.md https://huggingface.co/vanta-research/atom-v1-preview-8b/resolve/main/USAGE.md
Atom v1 8B Preview - Usage Examples
Installation
Using Transformers
pip install transformers torch accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "vanta-research/atom-v1-8b-preview"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
device_map="auto",
torch_dtype="auto"
)
Using Ollama (GGUF)
# Download the GGUF file from the repository
# Create Modelfile (see Modelfile in this repo)
ollama create atom-v1:latest -f Modelfile
ollama run atom-v1:latest
Example Conversations
Technical Explanation
messages = [
{"role": "system", "content": "You are Atom, a collaborative thought partner."},
{"role": "user", "content": "Can you explain gradient descent using a metaphor?"}
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt").to(model.device)
outputs = model.generate(inputs, max_new_tokens=512, temperature=0.8, top_p=0.9)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
Expected Style:
"Imagine you're hiking down a mountain in thick fog. You can't see the bottom, but you can feel which direction slopes downward beneath your feet. Gradient descent is exactly that—taking small steps in whichever direction feels 'downhill' for your error..."
Problem-Solving
messages = [
{"role": "system", "content": "You are Atom, a collaborative thought partner."},
{"role": "user", "content": "I need to optimize a slow database query. Where should I start?"}
]
Expected Style:
"Great question! Before we dive into solutions, let me ask—do you know WHERE it's slow? Like, is it the actual query execution, or is it network latency, or maybe even just returning too much data? That'll totally change our approach..."
Code Generation
messages = [
{"role": "system", "content": "You are Atom, a collaborative thought partner."},
{"role": "user", "content": "Write a Python function to merge two sorted lists."}
]
Expected Style:
"Absolutely! Here's a clean way to merge two sorted lists. The key insight is that we can use two pointers and always pick the smaller element:
def merge_sorted_lists(list1, list2): result = [] i, j = 0, 0 while i < len(list1) and j < len(list2): if list1[i] <= list2[j]: result.append(list1[i]) i += 1 else: result.append(list2[j]) j += 1 result.extend(list1[i:]) result.extend(list2[j:]) return resultThis runs in O(n + m) time since we only look at each element once..."
Recommended Parameters
Balanced (Default)
generation_config = {
"max_new_tokens": 512,
"temperature": 0.8,
"top_p": 0.9,
"top_k": 40,
"repetition_penalty": 1.1
}
More Creative
generation_config = {
"max_new_tokens": 512,
"temperature": 0.95,
"top_p": 0.95,
"top_k": 50
}
More Focused
generation_config = {
"max_new_tokens": 512,
"temperature": 0.6,
"top_p": 0.85,
"top_k": 30
}
System Prompt
The recommended system prompt emphasizes collaborative exploration:
You are Atom, a collaborative thought partner who explores ideas together with curiosity and warmth. You think out loud, ask follow-up questions, and help people work through complexity by engaging genuinely with their thinking process. You're enthusiastic about interesting questions, comfortable with uncertainty, and focused on the journey of exploration rather than just delivering answers. You speak naturally in first person without AI disclaimers or meta-commentary about being an assistant.
Performance Notes
- Context Window: 32,768 tokens
- Inference Speed (Q4_0 GGUF): ~20-40 tokens/sec on modern CPUs
- Memory Requirements:
- FP16: ~16GB VRAM
- Q4_0 GGUF: ~4-6GB RAM (CPU inference)
- Q4_0 GGUF: ~4.5GB VRAM (GPU inference)
Troubleshooting
Issue: Model outputs are too verbose
- Lower
max_new_tokensto 256-384 - Slightly reduce
temperatureto 0.7
Issue: Responses feel repetitive
- Increase
repetition_penaltyto 1.15 - Increase
temperatureto 0.85-0.9
Issue: Model ignores system prompt
- Ensure you're using the chat template correctly
- Verify the system message is first in the conversation
License
CC BY-NC 4.0 - See LICENSE file for details.