Run this model with HF Jobs

Run ProjectAstroAI/Sonke-1.5-350M on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/ProjectAstroAI/Sonke-1.5-350M. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/ProjectAstroAI/Sonke-1.5-350M on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/ProjectAstroAI/Sonke-1.5-350M. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/ProjectAstroAI/Sonke-1.5-350M. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Sönke-1.5-350M

A 350M model I trained from scratch on my own GPU. It can chat, do basic math and write small bits of code, and it can think before it answers. This is the finished model: step 72,480, 30B tokens. Sönke-1.0 was the same run at 22.8B tokens.

How to use it

from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "ProjectAstroAI/Sonke-1.5-350M"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, dtype="bfloat16").to("cuda")

messages = [{"role": "user", "content": "Explain photosynthesis in two sentences."}]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, enable_thinking=False, return_dict=True, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=512, temperature=0.7, top_p=0.9, do_sample=True)
print(tok.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Remove enable_thinking=False if you want it to think first. It needs trust_remote_code=True because the architecture is my own. Batches need prompts of the same length for now.

Evals

Model MMLU HellaSwag ARC-C GSM8K HumanEval
Sönke-1.5-350M 27.1 43.3 29.3 19.9 18.3
Sönke-1.0-350M 28.6 42.0 28.8 12.3 12.2
SmolLM2-360M 25.0 54.5 38.4 3.2 12.2
Qwen2.5-0.5B 47.5 52.1 35.6 41.6 30.5
Qwen2.5-1.5B 60.9 67.9 54.7 68.5 37.2

The last 7B tokens mostly helped math and code: GSM8K went from 12.3 to 19.9 and HumanEval from 12.2 to 18.3.

Sönke: MMLU 5-shot, HellaSwag and ARC-C 0-shot, GSM8K 0-shot without thinking, HumanEval pass@1. SmolLM2's MMLU, ARC-C and HumanEval were run the same way; everything else is from the models' own cards, with different shot counts, so small gaps don't mean much.

Limitations

It's small. It gets facts wrong, loses track in long chats, and sometimes messes up formatting. Don't use it for anything that matters.

License

Apache 2.0. Part of the training data was generated with DeepSeek models, so use of this model is also subject to the use restrictions in LICENSE-DEEPSEEK-MODEL (paragraph 5 and Attachment A). Dataset credits are in NOTICE.

Downloads last month
271
Safetensors
Model size
0.3B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Datasets used to train ProjectAstroAI/Sonke-1.5-350M

Collection including ProjectAstroAI/Sonke-1.5-350M