No. 06 of 09
Osprey350M
The strongest small model, for when quality matters more than speed.
Specifications
- Architecture
- Decoder-only transformer
- Parameters
- 352.0M
- Layers
- 31
- Hidden size
- 960
- Attention heads
- 15 query · 5 key/value
- Head dimension
- 64
- Feed-forward size
- 2,560
- Context length
- 4,096 tokens
- Vocabulary
- 49,152
- Attention
- Grouped-query attention
- QK norm
- Per-head RMSNorm
- Positions
- RoPE, θ = 50,000
- Activation
- SwiGLU
- Normalization
- RMSNorm, pre-norm
- Embeddings
- Tied input / output
- Languages
- French, English
- Training budget
- 35.1B tokens
- License
- TBA
Planned configuration for v1. Final numbers are confirmed at release. See Architecture.
Osprey 350M Base Planned
The raw pre-trained model. It continues text rather than following instructions. Use it as the starting point for your own fine-tuning.
Get the weights
- Aulvero/Osprey-350M-Base-v1Not yet released
Quick start
# pip install transformers torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Aulvero/Osprey-350M-Base-v1"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
inputs = tok("La marée monte parce que", return_tensors="pt")
out = model.generate(**inputs, max_new_tokens=64)
print(tok.decode(out[0], skip_special_tokens=True))This snippet will work once Osprey Base is published.
Osprey 350M Instruct Planned
Fine-tuned from Base to follow instructions and hold a conversation in French or English. Most people should start here.
Get the weights
- Aulvero/Osprey-350M-Instruct-v1Not yet released
Quick start
# pip install transformers torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Aulvero/Osprey-350M-Instruct-v1"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
messages = [{"role": "user", "content": "Explique les marées en deux phrases."}]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
out = model.generate(inputs, max_new_tokens=128)
print(tok.decode(out[0][inputs.shape[-1]:], skip_special_tokens=True))This snippet will work once Osprey Instruct is published.
Footprint
704 MBBF16 weights
194 MB4-bit weights
SmallPhones and laptops