Downloads · 30 days
14
19% of all-time downloads
SerFabio89/aretusa-2b-pretrained-32k
aretusa-2b-pretrained-32k is a text generation model from SerFabio89. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
Aretusa-2B Pretrained 32k is the pre-SFT continued-pretraining checkpoint of Aretusa-2B after the long-context curriculum stage.
Downloads · 30 days
14
19% of all-time downloads
All-time downloads
75
Public
Parameters
2.2B
4.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4.4 GB · 100%
From the Hugging Face model README
Aretusa-2B Pretrained 32k is the pre-SFT continued-pretraining checkpoint of Aretusa-2B after the long-context curriculum stage.
This is not a chat model and is not instruction-tuned. It should be used as a base pretrained / continued-pretrained causal language model for further SFT, evaluation, or research.
This repository is published in native Hugging Face Transformers format as:
Qwen3ForCausalLM
The original Aretusa architecture is Llama-style but includes QK Norm, i.e. RMSNorm on Q and K before RoPE. Standard Llama does not natively include those Q/K norm weights, while Qwen3 does, so Qwen3 is used as the closest native Transformers-compatible target.
No trust_remote_code is required for the converted checkpoint.
This checkpoint corresponds to:
long_context_curriculum/stage3_32k/long_context/final_export
Configuration:
{
"model_type": "aretusa",
"vocab_size": 65536,
"d_model": 2048,
"n_layers": 32,
"n_heads": 16,
"n_kv_heads": 4,
"d_ff": 8192,
"max_seq_len": 32768,
"original_max_seq_len": 4096,
"rope_base": 500000.0,
"rope_scaling": {
"type": "ntk",
"factor": 8.0
},
"norm_eps": 1e-06,
"dtype": "bfloat16"
}
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
repo = "SerFabio89/aretusa-2b-pretrained-32k"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=False)
model = AutoModelForCausalLM.from_pretrained(
repo,
trust_remote_code=False,
dtype=torch.bfloat16,
device_map="auto",
)
prompt = "<|begin_of_text|>L'intelligenza artificiale è"
inputs = tok(prompt, return_tensors="pt", add_special_tokens=False)
inputs.pop("token_type_ids", None)
inputs = {k: v.to(model.device) for k, v in inputs.items()}
with torch.inference_mode():
out = model.generate(
**inputs,
max_new_tokens=80,
do_sample=False,
pad_token_id=tok.pad_token_id,
eos_token_id=tok.eos_token_id,
)
print(tok.decode(out[0], skip_special_tokens=False))
This is a pretrained base checkpoint, not a final assistant.
Expected limitations:
The checkpoint was converted from the original Aretusa format to native Qwen3ForCausalLM format. The conversion preserves QK Norm tensors and folds static NTK RoPE scaling into the effective RoPE theta used by the native Transformers configuration.