Text Generation
Transformers
Safetensors
English
qwen2
text-generation-inference
unsloth
reasoning
thought
core-math
instruction-tuning
conversational
Instructions to use NovatasticRoScript/Atomight-2-1.5B-Thinking with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NovatasticRoScript/Atomight-2-1.5B-Thinking with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NovatasticRoScript/Atomight-2-1.5B-Thinking") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NovatasticRoScript/Atomight-2-1.5B-Thinking") model = AutoModelForCausalLM.from_pretrained("NovatasticRoScript/Atomight-2-1.5B-Thinking") 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use NovatasticRoScript/Atomight-2-1.5B-Thinking with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NovatasticRoScript/Atomight-2-1.5B-Thinking" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NovatasticRoScript/Atomight-2-1.5B-Thinking", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NovatasticRoScript/Atomight-2-1.5B-Thinking
- SGLang
How to use NovatasticRoScript/Atomight-2-1.5B-Thinking 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 "NovatasticRoScript/Atomight-2-1.5B-Thinking" \ --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": "NovatasticRoScript/Atomight-2-1.5B-Thinking", "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 "NovatasticRoScript/Atomight-2-1.5B-Thinking" \ --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": "NovatasticRoScript/Atomight-2-1.5B-Thinking", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio new
How to use NovatasticRoScript/Atomight-2-1.5B-Thinking 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 NovatasticRoScript/Atomight-2-1.5B-Thinking 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 NovatasticRoScript/Atomight-2-1.5B-Thinking to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for NovatasticRoScript/Atomight-2-1.5B-Thinking to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="NovatasticRoScript/Atomight-2-1.5B-Thinking", max_seq_length=2048, ) - Docker Model Runner
How to use NovatasticRoScript/Atomight-2-1.5B-Thinking with Docker Model Runner:
docker model run hf.co/NovatasticRoScript/Atomight-2-1.5B-Thinking
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,23 +1,93 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
| 3 |
tags:
|
| 4 |
- text-generation-inference
|
| 5 |
- transformers
|
| 6 |
- unsloth
|
| 7 |
-
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
language:
|
| 10 |
- en
|
| 11 |
-
|
| 12 |
-
- open-thoughts/OpenThoughts-114k
|
| 13 |
---
|
| 14 |
|
| 15 |
-
|
| 16 |
|
| 17 |
-
|
| 18 |
-
- **License:** apache-2.0
|
| 19 |
-
- **Finetuned from model :** unsloth/qwen2.5-1.5b-instruct-unsloth-bnb-4bit
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: NovatasticRoScript/Atomight-2-1.5B-Thinking
|
| 4 |
tags:
|
| 5 |
- text-generation-inference
|
| 6 |
- transformers
|
| 7 |
- unsloth
|
| 8 |
+
- reasoning
|
| 9 |
+
- thought
|
| 10 |
+
- core-math
|
| 11 |
+
- instruction-tuning
|
| 12 |
+
model_creator: NovatasticRoScript
|
| 13 |
+
model_type: causal-lm
|
| 14 |
language:
|
| 15 |
- en
|
| 16 |
+
pipeline_tag: text-generation
|
|
|
|
| 17 |
---
|
| 18 |
|
| 19 |
+
<div align="center">
|
| 20 |
|
| 21 |
+
# ⚛️ Atomight-2-1.5B-Thinking
|
|
|
|
|
|
|
| 22 |
|
| 23 |
+
**A Deep-Reasoning Small Language Model Optimized for Sequential Logic Chains**
|
| 24 |
|
| 25 |
+
</div>
|
| 26 |
+
|
| 27 |
+
## 📌 Model Overview
|
| 28 |
+
**Atomight-2-1.5B-Thinking** is a specialized, compact reasoning model built on top of a 1.5B parameter core architecture. Engineered explicitly for users operating on constrained hardware environments (such as a free Google Colab T4 instance), Atomight-2 utilizes an explicit internal `<think>...</think>` scratchpad layout. It dynamically breaks down complex mathematical, logical, and structural prompts before committing to a final conclusion.
|
| 29 |
+
|
| 30 |
+
### 🚀 Key Highlights
|
| 31 |
+
* **Hardware Democratic:** High-tier deep reasoning accessible on consumer-grade hardware and free cloud compute tiers.
|
| 32 |
+
* **Structured Scratchpad:** Generates native, visible reasoning pathways natively formatted for transparent auditing.
|
| 33 |
+
* **Chat-Template Native:** Tailored directly for ChatML system configurations.
|
| 34 |
+
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
## 📊 Evaluation & Benchmark Results
|
| 38 |
+
|
| 39 |
+
Atomight-2 was subjected to a high-volume statistical evaluation matrix across core logic paradigms, matching up against premier industry baselines in the 1B–4B small language model class.
|
| 40 |
+
|
| 41 |
+
### Official Performance Breakdown
|
| 42 |
+
The model displays exceptional specialization spikes in structured mathematical deduction, rivaling or outperforming significantly larger parameters classes on core numerical strings.
|
| 43 |
+
|
| 44 |
+
<div align="center">
|
| 45 |
+
<img src="https://huggingface.co/NovatasticRoScript/Atomight-2-1.5B-Thinking/resolve/main/Note%20Original%20benchmarking%20of%20Atomight-2-1.5B-Thinking%20consists%20of.png" alt="Atomight-2 Official Benchmark Result" width="85%">
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
| Benchmark | Paradigm | Atomight-2-1.5B-Thinking | Qwen-2-1.5B-Instruct | Phi-3-mini (3.8B) | Llama-3.2-3B-Instruct |
|
| 49 |
+
| :--- | :--- | :---: | :---: | :---: | :---: |
|
| 50 |
+
| **GSM8k** | Math Logical Chains | **80.1%** | 71.0% | 82.5% | 73.1% |
|
| 51 |
+
| **ARC-C** | Core Reasoning | **88.5%** | 82.3% | 84.9% | 83.3% |
|
| 52 |
+
| **MMLU** | General Knowledge | **63.2%** | 56.7% | 68.8% | 61.1% |
|
| 53 |
+
|
| 54 |
+
> ⚠️ **Evaluation Insight:** While Atomight-2 exhibits class-leading spikes on core textual logic and mathematical proofs, it experiences a classic reasoning tradeoff. On abstract matrix-grid visual transformation evaluations (like ARC-AGI 2), it drops to a baseline floor of **0.00%**. This cognitive bottleneck highlights an instruction deficit in translating spatial imagery into basic structural text tokens—a major priority slated for the next architecture generation.
|
| 55 |
+
|
| 56 |
+
---
|
| 57 |
+
|
| 58 |
+
## 💻 Quickstart & Inference Code
|
| 59 |
+
|
| 60 |
+
To deploy Atomight-2 cleanly without encountering text-truncation errors inside the internal reasoning blocks, execute the generation using the official structured chat template format.
|
| 61 |
+
|
| 62 |
+
```python
|
| 63 |
+
import torch
|
| 64 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 65 |
+
|
| 66 |
+
MODEL_ID = "NovatasticRoScript/Atomight-2-1.5B-Thinking"
|
| 67 |
+
|
| 68 |
+
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, trust_remote_code=True)
|
| 69 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 70 |
+
MODEL_ID,
|
| 71 |
+
torch_dtype=torch.float16,
|
| 72 |
+
device_map="auto",
|
| 73 |
+
trust_remote_code=True
|
| 74 |
+
)
|
| 75 |
+
|
| 76 |
+
# Structure conversational dialog into ChatML framework
|
| 77 |
+
messages = [
|
| 78 |
+
{"role": "user", "content": "A retailer buys shirts for $15 and sells them for $25. What is the total profit on 12 shirts?"}
|
| 79 |
+
]
|
| 80 |
+
|
| 81 |
+
templated_input = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 82 |
+
inputs = tokenizer(templated_input, return_tensors="pt").to("cuda")
|
| 83 |
+
|
| 84 |
+
print("🧠 Generating Reasoning Sequence:")
|
| 85 |
+
outputs = model.generate(
|
| 86 |
+
**inputs,
|
| 87 |
+
max_new_tokens=768, # Plentiful headroom required for deep-thinking scratchpads
|
| 88 |
+
temperature=0.1,
|
| 89 |
+
do_sample=False,
|
| 90 |
+
pad_token_id=tokenizer.eos_token_id
|
| 91 |
+
)
|
| 92 |
+
|
| 93 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=False))
|