File size: 5,731 Bytes
7a778b2
8349e74
 
7a778b2
 
 
 
 
7ee68ee
 
 
7a778b2
35c15c4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7d86912
a0025c3
79144eb
7d86912
79144eb
 
 
7d86912
79144eb
 
7d86912
79144eb
7d86912
 
 
79144eb
7d86912
79144eb
 
 
 
 
 
 
 
 
 
cfb1d10
7d86912
 
 
79144eb
 
 
 
 
 
 
 
 
7d86912
79144eb
7d86912
79144eb
7d86912
 
79144eb
 
7d86912
79144eb
c82c26a
79144eb
c82c26a
79144eb
 
 
 
c82c26a
 
7d86912
79144eb
 
7d86912
c82c26a
79144eb
 
 
 
c82c26a
79144eb
c82c26a
79144eb
 
 
c82c26a
79144eb
c82c26a
79144eb
7d86912
79144eb
7d86912
79144eb
 
 
 
 
 
 
7d86912
 
 
79144eb
7d86912
79144eb
 
 
 
7d86912
 
 
79144eb
7d86912
79144eb
 
 
 
7d86912
79144eb
7d86912
79144eb
7d86912
79144eb
 
 
7d86912
 
 
79144eb
 
 
7d86912
 
79144eb
 
 
7d86912
79144eb
7d86912
 
 
 
 
79144eb
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
---
base_model:
- Qwen/Qwen3-4B
tags:
- text-generation-inference
- transformers
- unsloth
- qwen3
license: other
license_name: anvdl-1.0
license_link: https://huggingface.co/apexion-ai/Nous-V1-8B/blob/main/LICENSE.md
language:
  - en
  - fr
  - pt
  - de
  - ro
  - sv
  - da
  - bg
  - ru
  - cs
  - el
  - uk
  - es
  - nl
  - sk
  - hr
  - pl
  - lt
  - nb
  - nn
  - fa
  - sl
  - gu
  - lv
  - it
  - oc
  - ne
  - mr
  - be
  - sr
  - lb
  - vec
  - as
  - cy
  - szl
  - ast
  - hne
  - awa
  - mai
  - bho
  - sd
  - ga
  - fo
  - hi
  - pa
  - bn
  - or
  - tg
  - yi
  - lmo
  - lij
  - scn
  - fur
  - sc
  - gl
  - ca
  - is
  - sq
  - li
  - prs
  - af
  - mk
  - si
  - ur
  - mag
  - bs
  - hy
  - zh
  - yue
  - my
  - ar
  - he
  - mt
  - id
  - ms
  - tl
  - ceb
  - jv
  - su
  - min
  - ban
  - pag
  - ilo
  - war
  - ta
  - te
  - kn
  - ml
  - tr
  - az
  - uz
  - kk
  - ba
  - tt
  - th
  - lo
  - fi
  - et
  - hu
  - vi
  - km
  - ja
  - ko
  - ka
  - eu
  - ht
  - pap
  - kea
  - tpi
  - sw

---
![banner](https://huggingface.co/NoemaResearch/Apollo-1-4B/resolve/main/img/banner.png)
# Apollo-1-4B

[![Model](https://img.shields.io/badge/Model-Apollo--1--4B-blue)](https://huggingface.co/NoemaResearch/Apollo-1-4B)
[![Base](https://img.shields.io/badge/Base-Qwen3--4B-green)](https://huggingface.co/Qwen/Qwen3-4B)
[![License](https://img.shields.io/badge/License-Apache_2.0-yellow)](LICENSE)

Apollo-1-4B is a **4 billion parameter instruction-tuned model** developed by **Noema Research**.  
It is based on [Qwen3-4B](https://huggingface.co/Qwen/Qwen3-4B) and optimized for **reasoning, instruction following, and lightweight deployment at scale**.  

This model represents the **mid-size member** of the Apollo series, balancing performance and efficiency for a broad range of use cases.  

---

## Model Overview

- **Base model:** `Qwen3-4B`  
- **Architecture:** Decoder-only transformer  
- **Parameters:** ~4B  
- **Context length:** up to 32k tokens (inherits Qwen3 long-context support)  
- **Domain:** General-purpose reasoning and instruction following  
- **Primary applications:**  
  - Conversational AI  
  - Multi-step reasoning tasks  
  - Education and tutoring systems  
  - Knowledge assistants and prototyping agents  
- **License:** anvdl-1.0

---

## Key Features

- **Instruction tuning** for consistent conversational and task-oriented responses  
- **Improved reasoning depth** compared to Apollo-1-2B, enabling stronger performance on complex queries  
- **Long-context handling**, inherited from Qwen3 architecture  
- **Multilingual coverage**, retaining broad knowledge across languages  
- **Balanced resource requirements**, deployable on high-end consumer hardware and cloud GPUs  

---

## Usage

The model is available in Hugging Face Transformers format. Example:

```python
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "NoemaResearch/Apollo-1-4B"

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
    trust_remote_code=True
)

messages = [
    {"role":"system", "content":"You are Apollo, a helpful reasoning assistant."},
    {"role":"user", "content":"Summarize the main differences between reinforcement learning and supervised learning."}
]

inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=768, temperature=0.6, top_p=0.9)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
````

**Recommended settings:**

* `temperature=0.4–0.8`
* `top_p=0.9–0.95`
* Lower temperatures yield more factual and concise answers

---

## Evaluation

Apollo-1-4B demonstrates stronger reasoning capabilities relative to Apollo-1-2B, with internal evaluations indicating:

* Higher accuracy on step-by-step reasoning tasks
* More robust **instruction adherence**
* Reduced **hallucinations** in factual settings
* Effective balance between performance and efficiency

A full benchmark report will be provided in a future update.
For upstream performance details, see the [Qwen3-4B model card](https://huggingface.co/Qwen/Qwen3-4B).

---

## Limitations

* **Reasoning scale**: While improved, Apollo-1-4B cannot match larger models (14B+) on complex or open-ended tasks
* **Knowledge breadth**: Some specialized or domain-specific knowledge remains limited
* **Hallucinations**: May generate plausible but incorrect information
* **Prompt sensitivity**: Outputs remain dependent on careful prompt formulation

---

## Responsible Use

* Do not rely on Apollo-1-4B for critical decisions without human oversight
* Verify outputs before applying in factual, legal, or safety-critical contexts
* Avoid providing personal or sensitive data in prompts
* The model should not be used to generate unsafe, harmful, or disallowed content

---

## Model Variants

* **Full precision (safetensors)** — research and high-fidelity inference
* **bf16 / fp16** — efficient inference on modern accelerators
* **Quantized versions (int8 / int4)** — deployment in resource-constrained environments

---

## Citation

If you use this model, please cite both Apollo-1-4B and the Qwen3 base model:

```bibtex
@misc{noema2025apollo4b,
  title={Apollo-1-4B},
  author={Noema Research},
  year={2025},
  howpublished={\url{https://huggingface.co/NoemaResearch/Apollo-1-4B}}
}
```

---

## Acknowledgements

Apollo-1-4B builds upon the [Qwen3](https://huggingface.co/Qwen) family of models.
We thank the Qwen team for open-sourcing their models and enabling derivative research.

---