The pre-anneal checkpoint of the Quark-150M pretraining run: the weights at the end of the constant learning-rate phase, before any learning-rate decay.
Research artifact. This model is released for research on small language models: architecture, training dynamics, long context and reinforcement learning from a base model. It is not a product and has not been evaluated for production use. It has had no safety training. Like any small language model, it makes factual and reasoning errors and can produce biased or harmful text. Do not use it for decisions that affect people, or deploy it without your own evaluation and safeguards.
| Parameters | 165.2M (140.0M without embeddings) |
| Layers | 16 (12 local, 4 global) |
| Context | 4,096 tokens (trained so far) |
| Training tokens | ~472B |
| Vocabulary | 32,768 |
| Weights | float32 safetensors |
This is the pre-anneal ("raw") checkpoint. Pretraining followed a warmup-stable-decay schedule: a short warmup, a long phase at constant learning rate (2e-3), then a decay to zero. This checkpoint is the model at the end of the constant phase, after about 472B tokens (2B tokens at 1K context, then 470B tokens at 4K context). It has not seen the 32K-context anneal yet, so treat its usable context as 4K tokens.
Pre-anneal checkpoints are useful for continued pretraining, for running your own anneal or data mix, and for studying what annealing does. For text generation, use Quark-150M-32K-Base (the same run after its anneal) instead.
| Model | What it is |
|---|---|
| Quark-150M-32K-Raw | Pre-anneal checkpoint: end of the constant learning-rate phase (~472B tokens, trained at up to 4K context) |
| Quark-150M-32K-Base | Base model after the 32K-context anneal (~500B tokens) |
| Quark-150M-128K-Base | Base model extended to 128K context (+10B tokens) |
| Quark-150M-128K-Zero | Reinforcement learning (GRPO) straight from the 128K base, without supervised fine-tuning |
Requires transformers>=5.23 (tested with 5.23.0) and trust_remote_code=True (the modeling code ships
with the weights).
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "empero-ai/Quark-150M-32K-Raw"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, dtype=torch.bfloat16).to("cuda")
inputs = tok("Photosynthesis is the process by which", return_tensors="pt").to("cuda") # prepends <|endoftext|>
out = model.generate(**inputs, max_new_tokens=80, do_sample=True, temperature=0.7, top_p=0.9,
repetition_penalty=1.1)
print(tok.decode(out[0], skip_special_tokens=True))
Small base models repeat themselves under greedy decoding; sampling with a mild repetition penalty (as above) reads better.
The weights are stored in float32. dtype=torch.bfloat16 halves the memory, and the residual stream still runs in
float32. Batched generation works with the tokenizer's default left padding.
Turns are wrapped in tags, and each tag is a single special token:
<|endoftext|>[SYSTEM]
You are quark, a helpful assistant made by Empero AI
[/SYSTEM]
[USER]
What is 2 + 3?
[/USER]
[MONOLOGUE]
Two plus three is five.
[/MONOLOGUE]
[ASSISTANT]
5
[/ASSISTANT]
[SYSTEM] and [MONOLOGUE] (the model's private thinking) are optional. <|endoftext|> marks the start of a
document; the tokenizer and the chat template add it.
Generated with the code above in float32, one run per prompt with the settings shown: nothing was re-rolled or selected. Generation stops at <|endoftext|>, [/ASSISTANT] or [/TOOL_CALL], or at the token limit. Special tokens are shown as text; the prompt is everything up to where the model's output begins.
Text completion (sampled: temperature 0.7, top-p 0.9, repetition penalty 1.1, seed 1234, up to 80 new tokens)
Prompt:
The capital of France is
Output:
Paris. The French people love to travel from city to city, and there are countless attractions and places to visit. In this article, we will present some of the best places to visit in Paris.
Paris is a city located on the Mediterranean coast near the town of Saint-Malo. The area is known for its beautiful gardens and stunning landscapes. It is also famous for its
Text completion (sampled: temperature 0.7, top-p 0.9, repetition penalty 1.1, seed 1234, up to 80 new tokens)
Prompt:
Photosynthesis is the process by which
Output:
plants capture sunlight and convert it into a form that is useful for their own needs. Photosynthesis occurs in the greenhouses, but plants do not need sunlight to produce sugars to make food.
Producing sugars from light energy is called photosynthesis. Plants can use the sun's rays to make glucose (sugars) in their cells. Glucose is a complex molecule containing three mon
Text completion (sampled: temperature 0.7, top-p 0.9, repetition penalty 1.1, seed 1234, up to 80 new tokens)
Prompt:
Question: Tom buys 3 apples at $2 each and pays with a $10 bill. How much change does he get?
Answer:
Output:
The total value of the three apples is $8, so Tom has to pay him$8 minus $3 =$5.
So he gets $10-5 =$5
A similar method that you could use is to add the costs together. If you have a dollar bill and then subtract 5 cents, you end up with$5.<|endoftext|>
Text completion (sampled: temperature 0.7, top-p 0.9, repetition penalty 1.1, seed 1234, up to 80 new tokens)
Prompt:
def is_prime(n):
Output:
"""Determine if n is a prime number.
Args:
n: The argument to check for primality
Returns:
True if n is a prime number, False otherwise.
Raises:
ValueError: If n is not a positive integer.
Example:
>>> is_prime(11)
True
>>>
Chat (greedy, up to 80 new tokens)
Prompt:
[USER]
What is the boiling point of water at sea level?
[/USER]
[ASSISTANT]
Output:
The boiling point of water at sea level is determined by several factors, including the density of the water, the temperature of the water, and the atmospheric pressure. This article will explore the boiling point of water at sea level and provide a detailed analysis of the boiling point of water at sea level.
1. **Density of Water**: The density of water is 1 g/cm³ at
The weights and code are released under the Apache License 2.0.
Compute for this work was partly sponsored by lium.io.