Text Generation
Transformers
Safetensors
GGUF
English
qwen2
unsloth
lora
llama.cpp
reasoning
distillation
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use EphAsad/Atem-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EphAsad/Atem-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EphAsad/Atem-3B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EphAsad/Atem-3B") model = AutoModelForCausalLM.from_pretrained("EphAsad/Atem-3B") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - llama-cpp-python
How to use EphAsad/Atem-3B with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="EphAsad/Atem-3B", filename="Atem-3b.Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use EphAsad/Atem-3B 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 EphAsad/Atem-3B:Q4_K_M # Run inference directly in the terminal: llama cli -hf EphAsad/Atem-3B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf EphAsad/Atem-3B:Q4_K_M # Run inference directly in the terminal: llama cli -hf EphAsad/Atem-3B:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf EphAsad/Atem-3B:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf EphAsad/Atem-3B:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf EphAsad/Atem-3B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf EphAsad/Atem-3B:Q4_K_M
Use Docker
docker model run hf.co/EphAsad/Atem-3B:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use EphAsad/Atem-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EphAsad/Atem-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EphAsad/Atem-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/EphAsad/Atem-3B:Q4_K_M
- SGLang
How to use EphAsad/Atem-3B 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 "EphAsad/Atem-3B" \ --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": "EphAsad/Atem-3B", "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 "EphAsad/Atem-3B" \ --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": "EphAsad/Atem-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use EphAsad/Atem-3B with Ollama:
ollama run hf.co/EphAsad/Atem-3B:Q4_K_M
- Unsloth Studio
How to use EphAsad/Atem-3B with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for EphAsad/Atem-3B to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for EphAsad/Atem-3B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for EphAsad/Atem-3B to start chatting
- Pi
How to use EphAsad/Atem-3B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf EphAsad/Atem-3B:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "EphAsad/Atem-3B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use EphAsad/Atem-3B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf EphAsad/Atem-3B:Q4_K_M
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 EphAsad/Atem-3B:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use EphAsad/Atem-3B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf EphAsad/Atem-3B:Q4_K_M
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 "EphAsad/Atem-3B:Q4_K_M" \ --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"
- Docker Model Runner
How to use EphAsad/Atem-3B with Docker Model Runner:
docker model run hf.co/EphAsad/Atem-3B:Q4_K_M
- Lemonade
How to use EphAsad/Atem-3B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull EphAsad/Atem-3B:Q4_K_M
Run and chat with the model
lemonade run user.Atem-3B-Q4_K_M
List all available models
lemonade list
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,25 +1,363 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
tags:
|
|
|
|
|
|
|
|
|
|
| 3 |
- gguf
|
| 4 |
-
-
|
| 5 |
- unsloth
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
---
|
| 8 |
|
| 9 |
-
# Atem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
-
|
| 12 |
|
| 13 |
-
**
|
| 14 |
-
- For text only LLMs: `llama-cli -hf EphAsad/Atem-3B --jinja`
|
| 15 |
-
- For multimodal models: `llama-mtmd-cli -hf EphAsad/Atem-3B --jinja`
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
| 23 |
-
An Ollama Modelfile is included for easy deployment.
|
| 24 |
-
This was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth)
|
| 25 |
-
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
base_model: Qwen/Qwen2.5-3B-Instruct
|
| 6 |
tags:
|
| 7 |
+
- text-generation
|
| 8 |
+
- transformers
|
| 9 |
+
- safetensors
|
| 10 |
- gguf
|
| 11 |
+
- qwen2
|
| 12 |
- unsloth
|
| 13 |
+
- lora
|
| 14 |
+
- llama.cpp
|
| 15 |
+
- reasoning
|
| 16 |
+
- distillation
|
| 17 |
+
- conversational
|
| 18 |
+
datasets:
|
| 19 |
+
- EphAsad/QWENMillenium-SF
|
| 20 |
+
- EphAsad/Phi4Millennium-SF
|
| 21 |
+
- EphAsad/MistralMillenium-SF
|
| 22 |
+
- Modotte/CodeX-2M-Thinking
|
| 23 |
+
- Jackrong/Kimi-K2.5-Reasoning-1M-Cleaned
|
| 24 |
+
- WithinUsAI/MiniMax_M2.7_Distilled_5k
|
| 25 |
+
- tuanha1305/DeepSeek-R1-Distill
|
| 26 |
+
- open-r1/OpenThoughts-114k-math
|
| 27 |
+
- flytech/python-codes-25k
|
| 28 |
+
- FreedomIntelligence/medical-o1-reasoning-SFT
|
| 29 |
+
- Jackrong/Claude-opus-4.7-TraceInversion-5000x
|
| 30 |
+
pipeline_tag: text-generation
|
| 31 |
+
model-index:
|
| 32 |
+
- name: EphAsad/Atem-3B
|
| 33 |
+
results:
|
| 34 |
+
- task:
|
| 35 |
+
type: text-generation
|
| 36 |
+
dataset:
|
| 37 |
+
name: ARC-Challenge
|
| 38 |
+
type: allenai/ai2_arc
|
| 39 |
+
config: ARC-Challenge
|
| 40 |
+
split: test
|
| 41 |
+
metrics:
|
| 42 |
+
- type: acc_norm
|
| 43 |
+
name: Accuracy (normalised)
|
| 44 |
+
value: 0.480
|
| 45 |
+
verified: false
|
| 46 |
+
- task:
|
| 47 |
+
type: text-generation
|
| 48 |
+
dataset:
|
| 49 |
+
name: GSM8K
|
| 50 |
+
type: openai/gsm8k
|
| 51 |
+
config: main
|
| 52 |
+
split: test
|
| 53 |
+
metrics:
|
| 54 |
+
- type: exact_match
|
| 55 |
+
name: Exact Match (flexible-extract, 5-shot)
|
| 56 |
+
value: 0.647
|
| 57 |
+
verified: false
|
| 58 |
+
- task:
|
| 59 |
+
type: text-generation
|
| 60 |
+
dataset:
|
| 61 |
+
name: HellaSwag
|
| 62 |
+
type: Rowan/hellaswag
|
| 63 |
+
split: validation
|
| 64 |
+
metrics:
|
| 65 |
+
- type: acc_norm
|
| 66 |
+
name: Accuracy (normalised)
|
| 67 |
+
value: 0.704
|
| 68 |
+
verified: false
|
| 69 |
+
---
|
| 70 |
+
|
| 71 |
+

|
| 72 |
+
|
| 73 |
+
# Atem-3B
|
| 74 |
+
|
| 75 |
+
*Ancient logic. Modern intelligence.*
|
| 76 |
+
|
| 77 |
+
The 3B foundation model of the Atem series — direct reasoning at scale.
|
| 78 |
+
|
| 79 |
+

|
| 80 |
+

|
| 81 |
+

|
| 82 |
+

|
| 83 |
+
|
| 84 |
+
---
|
| 85 |
+
|
| 86 |
+
## Overview
|
| 87 |
+
|
| 88 |
+
Atem-3B is the first release in the 3B branch of the Atem model series — a Stage 1 supervised fine-tune on Qwen2.5-3B-Instruct across approximately 120,000 training examples spanning mathematics, code, reasoning, and general instruction following.
|
| 89 |
+
|
| 90 |
+
Where the 1.5B Atem line demonstrated that a small model could be meaningfully improved through careful data curation, Atem-3B applies the same methodology at twice the parameter count. The 3B base provides a stronger foundation — particularly for mathematical reasoning and structured generation — while the training corpus prioritises quality and diversity over volume.
|
| 91 |
+
|
| 92 |
+
**Design philosophy:** Think tags were stripped from all training data during preprocessing. Atem-3B is a direct-answer model — it does not produce `<think>` traces. The reasoning capacity of the 3B base is channelled into producing well-structured, considered responses rather than visible chain-of-thought. A CoT variant is planned for Stage 2.
|
| 93 |
|
| 94 |
---
|
| 95 |
|
| 96 |
+
## The Atem Series
|
| 97 |
+
|
| 98 |
+
**1.5B Series**
|
| 99 |
+
|
| 100 |
+
| Model | Stage | Capability |
|
| 101 |
+
|---|---|---|
|
| 102 |
+
| [Atem v1](https://huggingface.co/EphAsad/Atem-v1-1.5B) | Stage 1 — SFT | Fast, direct reasoning |
|
| 103 |
+
| [Atem-Wisdom](https://huggingface.co/EphAsad/Atem-Wisdom-1.5B) | Stage 2 — CoT | Explicit thinking traces |
|
| 104 |
+
| Atem-Pharaoh *(planned)* | Stage 3 — DPO/IPO | Preference-aligned reasoning |
|
| 105 |
+
|
| 106 |
+
**3B Series**
|
| 107 |
+
|
| 108 |
+
| Model | Stage | Capability |
|
| 109 |
+
|---|---|---|
|
| 110 |
+
| **Atem-3B** | Stage 1 — SFT | Direct reasoning at 3B scale |
|
| 111 |
+
| **Atem-3B-Pharaoh** | Stage 2 — CoT | Explicit thinking traces |
|
| 112 |
+
|
| 113 |
+
---
|
| 114 |
+
|
| 115 |
+
## Model Details
|
| 116 |
+
|
| 117 |
+
| Property | Value |
|
| 118 |
+
|---|---|
|
| 119 |
+
| **Base model** | Qwen/Qwen2.5-3B-Instruct |
|
| 120 |
+
| **Training method** | LoRA SFT — Stage 1 (think tags stripped) |
|
| 121 |
+
| **LoRA config** | r=32, alpha=64, dropout=0.05 |
|
| 122 |
+
| **Parameters** | ~3.09B |
|
| 123 |
+
| **Trainable parameters** | 59,867,136 (1.90%) |
|
| 124 |
+
| **Training records** | 120,043 (after token length filtering) |
|
| 125 |
+
| **Epochs** | 1 |
|
| 126 |
+
| **Final val loss** | 0.8384 |
|
| 127 |
+
| **Hardware** | NVIDIA A100-SXM4-80GB |
|
| 128 |
+
| **Max sequence length** | 4,096 tokens |
|
| 129 |
+
| **Precision** | bfloat16 |
|
| 130 |
+
| **License** | Apache 2.0 |
|
| 131 |
+
|
| 132 |
+
---
|
| 133 |
+
|
| 134 |
+
## Output Format
|
| 135 |
+
|
| 136 |
+
Atem-3B produces direct, structured responses. Think tags were stripped from all training data during preprocessing — the model was trained exclusively on clean outputs with no chain-of-thought traces.
|
| 137 |
+
|
| 138 |
+
```
|
| 139 |
+
[Direct response — reasoned, structured, no <think> tags]
|
| 140 |
+
```
|
| 141 |
+
|
| 142 |
+
This is a deliberate Stage 1 design choice. A chain-of-thought variant exposing explicit reasoning traces is planned as Stage 2.
|
| 143 |
+
|
| 144 |
+
---
|
| 145 |
+
|
| 146 |
+
## Training Data
|
| 147 |
+
|
| 148 |
+
Stage 1 training used approximately 120,000 examples drawn from eleven sources. All reasoning traces (`<think>...</think>` blocks) were stripped prior to training. Records shorter than 20 characters after stripping were excluded.
|
| 149 |
+
|
| 150 |
+
| Dataset | Count | Focus |
|
| 151 |
+
|---|---|---|
|
| 152 |
+
| Modotte/CodeX-2M-Thinking | 40,000 | Code (think tags stripped) |
|
| 153 |
+
| Jackrong/Kimi-K2.5-Reasoning-1M-Cleaned | 23,000 | General reasoning (English filtered) |
|
| 154 |
+
| open-r1/OpenThoughts-114k-math | 10,000 | Mathematics (correct only) |
|
| 155 |
+
| flytech/python-codes-25k | 10,000 | Python code |
|
| 156 |
+
| FreedomIntelligence/medical-o1-reasoning-SFT | 10,000 | Medical reasoning |
|
| 157 |
+
| tuanha1305/DeepSeek-R1-Distill | 9,000 | Reasoning distillation |
|
| 158 |
+
| EphAsad/QWENMillenium-SF | 5,000 | General instruction |
|
| 159 |
+
| EphAsad/MistralMillenium-SF | 5,000 | General instruction |
|
| 160 |
+
| WithinUsAI/MiniMax_M2.7_Distilled_5k | 5,000 | Mixed reasoning |
|
| 161 |
+
| Jackrong/Claude-opus-4.7-TraceInversion-5000x | 4,761 | Inverted reasoning |
|
| 162 |
+
| EphAsad/Phi4Millennium-SF | 2,932 | General instruction |
|
| 163 |
+
|
| 164 |
+
Chinese-language records from Kimi K2.5 were filtered using an ASCII character ratio threshold before inclusion. OpenThoughts-114k-math was filtered to `correct == True` examples only.
|
| 165 |
+
|
| 166 |
+
**Loss curve:**
|
| 167 |
+
|
| 168 |
+
| Step | Train Loss | Val Loss |
|
| 169 |
+
|---|---|---|
|
| 170 |
+
| 200 | 0.9236 | 0.9011 |
|
| 171 |
+
| 400 | 0.9200 | 0.8796 |
|
| 172 |
+
| 600 | 0.8591 | 0.8685 |
|
| 173 |
+
| 800 | 0.8837 | 0.8585 |
|
| 174 |
+
| 1000 | 0.8455 | 0.8507 |
|
| 175 |
+
| 1200 | 0.8359 | 0.8453 |
|
| 176 |
+
| 1400 | 0.8240 | 0.8413 |
|
| 177 |
+
| 1600 | 0.8626 | 0.8391 |
|
| 178 |
+
| 1800 | 0.8940 | 0.8384 |
|
| 179 |
+
| 1876 (final) | **0.8702** | **0.8384** |
|
| 180 |
+
|
| 181 |
+
Validation loss descends steadily throughout the full run with no overfitting signal.
|
| 182 |
+
|
| 183 |
+
---
|
| 184 |
+
|
| 185 |
+
## Evaluation
|
| 186 |
+
|
| 187 |
+
### Benchmark Results
|
| 188 |
+
|
| 189 |
+
Evaluated using lm-evaluation-harness via the Python API under identical conditions for both models. ARC-Challenge and HellaSwag use zero-shot normalised accuracy; GSM8K uses 5-shot. Both models evaluated at 4-bit quantisation on the same A100-SXM4-80GB in torch.float16.
|
| 190 |
+
|
| 191 |
+
| Task | Base (3B) | Atem-3B | Delta |
|
| 192 |
+
|---|---|---|---|
|
| 193 |
+
| ARC-Challenge | 48.1% | 48.0% | -0.1% — |
|
| 194 |
+
| GSM8K (strict-match) | 2.1% | 37.1% | +35.0% |
|
| 195 |
+
| GSM8K (flexible-extract) | 62.4% | **64.7%** | +2.3% ✓ |
|
| 196 |
+
| HellaSwag | 73.5% | 70.4% | -3.0% ⚠ |
|
| 197 |
|
| 198 |
+
**Note on GSM8K:** lm_eval's strict-match filter uses a `#### number` regex that only fires when the model produces that exact token sequence. The base Qwen2.5-3B-Instruct solves problems correctly but formats answers conversationally, yielding 2.1% strict-match against a 62.4% flexible-extract — the latter being the accurate measure of base model mathematical capability. Atem-3B's training on math distillation datasets reinforced structured answer termination, producing 37.1% strict-match. The meaningful comparison is flexible-extract: **62.4% → 64.7% (+2.3%)** — a genuine but modest improvement. The strict-match delta is a formatting artefact, not a 35-point gain in mathematical reasoning ability.
|
| 199 |
|
| 200 |
+
**Note on HellaSwag:** The -3.0% regression is a common pattern when fine-tuning instruct models on structured reasoning and task-completion data. HellaSwag tests commonsense sentence completion in a multiple-choice format; training on problem-solving corpora shifts the model's distribution away from the casual, predictive register that HellaSwag measures. This is a known trade-off, not an indicator of general capability loss.
|
|
|
|
|
|
|
| 201 |
|
| 202 |
+
---
|
| 203 |
+
|
| 204 |
+
## Usage
|
| 205 |
+
|
| 206 |
+
### Transformers
|
| 207 |
+
|
| 208 |
+
```python
|
| 209 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 210 |
+
import torch
|
| 211 |
+
|
| 212 |
+
model_name = "EphAsad/Atem-3B"
|
| 213 |
+
|
| 214 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 215 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 216 |
+
model_name,
|
| 217 |
+
torch_dtype=torch.bfloat16,
|
| 218 |
+
device_map="auto"
|
| 219 |
+
)
|
| 220 |
+
|
| 221 |
+
messages = [
|
| 222 |
+
{
|
| 223 |
+
"role": "user",
|
| 224 |
+
"content": "Explain the difference between a process and a thread."
|
| 225 |
+
}
|
| 226 |
+
]
|
| 227 |
+
|
| 228 |
+
inputs = tokenizer.apply_chat_template(
|
| 229 |
+
messages,
|
| 230 |
+
tokenize=True,
|
| 231 |
+
add_generation_prompt=True,
|
| 232 |
+
return_tensors="pt"
|
| 233 |
+
).to(model.device)
|
| 234 |
+
|
| 235 |
+
with torch.no_grad():
|
| 236 |
+
output = model.generate(
|
| 237 |
+
input_ids=inputs,
|
| 238 |
+
max_new_tokens=1024,
|
| 239 |
+
temperature=0.7,
|
| 240 |
+
top_p=0.9,
|
| 241 |
+
repetition_penalty=1.1,
|
| 242 |
+
do_sample=True,
|
| 243 |
+
)
|
| 244 |
+
|
| 245 |
+
response = tokenizer.decode(
|
| 246 |
+
output[0][inputs.shape[1]:],
|
| 247 |
+
skip_special_tokens=True
|
| 248 |
+
)
|
| 249 |
+
print(response)
|
| 250 |
+
```
|
| 251 |
+
|
| 252 |
+
### Unsloth (faster inference)
|
| 253 |
+
|
| 254 |
+
```python
|
| 255 |
+
from unsloth import FastLanguageModel
|
| 256 |
+
import torch
|
| 257 |
+
|
| 258 |
+
model, tokenizer = FastLanguageModel.from_pretrained(
|
| 259 |
+
model_name="EphAsad/Atem-3B",
|
| 260 |
+
max_seq_length=4096,
|
| 261 |
+
dtype=torch.bfloat16,
|
| 262 |
+
load_in_4bit=True,
|
| 263 |
+
)
|
| 264 |
+
FastLanguageModel.for_inference(model)
|
| 265 |
+
|
| 266 |
+
messages = [
|
| 267 |
+
{
|
| 268 |
+
"role": "user",
|
| 269 |
+
"content": "Write a Python function to find all prime numbers up to n."
|
| 270 |
+
}
|
| 271 |
+
]
|
| 272 |
+
|
| 273 |
+
inputs = tokenizer.apply_chat_template(
|
| 274 |
+
messages,
|
| 275 |
+
tokenize=True,
|
| 276 |
+
add_generation_prompt=True,
|
| 277 |
+
return_tensors="pt"
|
| 278 |
+
).to("cuda")
|
| 279 |
+
|
| 280 |
+
with torch.no_grad():
|
| 281 |
+
output = model.generate(
|
| 282 |
+
input_ids=inputs,
|
| 283 |
+
max_new_tokens=1024,
|
| 284 |
+
temperature=0.7,
|
| 285 |
+
top_p=0.9,
|
| 286 |
+
do_sample=True,
|
| 287 |
+
)
|
| 288 |
+
|
| 289 |
+
print(tokenizer.decode(output[0][inputs.shape[1]:], skip_special_tokens=True))
|
| 290 |
+
```
|
| 291 |
+
|
| 292 |
+
### Ollama
|
| 293 |
+
|
| 294 |
+
```bash
|
| 295 |
+
# Recommended — best speed/quality balance
|
| 296 |
+
ollama run hf.co/EphAsad/Atem-3B:Q4_K_M
|
| 297 |
+
|
| 298 |
+
# Higher quality
|
| 299 |
+
ollama run hf.co/EphAsad/Atem-3B:Q5_K_M
|
| 300 |
+
|
| 301 |
+
# Near-lossless
|
| 302 |
+
ollama run hf.co/EphAsad/Atem-3B:Q8_0
|
| 303 |
+
```
|
| 304 |
+
|
| 305 |
+
### llama.cpp
|
| 306 |
+
|
| 307 |
+
```bash
|
| 308 |
+
llama-server -hf EphAsad/Atem-3B:Q4_K_M
|
| 309 |
+
```
|
| 310 |
+
|
| 311 |
+
### Available Files
|
| 312 |
+
|
| 313 |
+
| File | Size | Description |
|
| 314 |
+
|---|---|---|
|
| 315 |
+
| `model-00001-of-00002.safetensors` + `model-00002-of-00002.safetensors` | ~6.2 GB | Full bfloat16 weights |
|
| 316 |
+
| `Atem-3b.Q4_K_M.gguf` | ~1.93 GB | 4-bit — recommended |
|
| 317 |
+
| `Atem-3b.Q5_K_M.gguf` | ~2.22 GB | 5-bit |
|
| 318 |
+
| `Atem-3b.Q8_0.gguf` | ~3.29 GB | 8-bit — near-lossless |
|
| 319 |
+
|
| 320 |
+
### System Prompt
|
| 321 |
+
|
| 322 |
+
Atem-3B's identity is baked into the chat template and activates without an explicit system message. To override manually:
|
| 323 |
+
|
| 324 |
+
```
|
| 325 |
+
You are Atem, a precise and analytical reasoning assistant. You approach
|
| 326 |
+
every problem methodically — identifying core concepts, reasoning step by
|
| 327 |
+
step, and arriving at well-supported conclusions. You show your thinking
|
| 328 |
+
clearly and are thorough, direct, and intellectually honest.
|
| 329 |
+
```
|
| 330 |
+
|
| 331 |
+
---
|
| 332 |
+
|
| 333 |
+
## Roadmap
|
| 334 |
+
|
| 335 |
+
| Stage | Status | Description |
|
| 336 |
+
|---|---|---|
|
| 337 |
+
| Stage 1 — SFT | ✅ Complete | **Atem-3B — this model** |
|
| 338 |
+
| Stage 2 — CoT SFT | 🔄 Planned | Atem-3B-Wisdom — chain-of-thought traces |
|
| 339 |
+
| Stage 3 — DPO/IPO | 🔄 Planned | Atem-3B-Pharaoh — preference-aligned reasoning |
|
| 340 |
+
|
| 341 |
+
---
|
| 342 |
+
|
| 343 |
+
## Citation
|
| 344 |
+
|
| 345 |
+
```bibtex
|
| 346 |
+
@misc{atem_3b_2026,
|
| 347 |
+
author = {Asad, Zain},
|
| 348 |
+
title = {Atem-3B: A 3B Direct-Reasoning Model via Stage 1 SFT},
|
| 349 |
+
year = {2026},
|
| 350 |
+
publisher = {HuggingFace},
|
| 351 |
+
howpublished = {\url{https://huggingface.co/EphAsad/Atem-3B}},
|
| 352 |
+
}
|
| 353 |
+
```
|
| 354 |
+
|
| 355 |
+
---
|
| 356 |
+
|
| 357 |
+
## License
|
| 358 |
+
|
| 359 |
+
Released under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0), consistent with the base model (Qwen2.5-3B-Instruct).
|
| 360 |
+
|
| 361 |
+
---
|
| 362 |
|
| 363 |
+
Built independently by [EphAsad](https://huggingface.co/EphAsad)
|
|
|
|
|
|
|
|
|