From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject:

cosmo-1b

Date: 2026-11-14Commit: e700c48Signed: 2DC28CC7B26A283B ✓

Text generation model with 1.7B parameters. Safetensors weights, 6.97 GB in all. Published by HuggingFaceTB under Apache-2.0.

1.7B params6.97GBcosmo-1bsafetensorspermissive
FactsParams1.7BSize6.97 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get HuggingFaceTB/cosmo-1b
# manifest sha256 a96fad86874f… · 6.97 GB · 11 files
$ fw verify ./cosmo-1b HuggingFaceTB/cosmo-1b
From sourceHosted (signed)HuggingFaceTB/cosmo-1bLast check: 2026-11-14 21:11 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
6.97 GB
Weights
6.97 GB (safetensors)
Parameters
1.7B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
11, each with a sha256
Publisher
HuggingFaceTB
Added
2026-11-14
Section
alt.freeweights.smollm
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:11 UTCpassed

Model card

From the publisher at commit e700c48. Shown as plain text with links; images open at the publisher.

Model Summary#

This is a 1.8B model trained on Cosmopedia synthetic dataset.

Training dataset#

The training corpus consisted of 30B tokens, 25B of which are synthetic from Cosmopedia. Since we didn't explore the synthetic generation of code, we augmented the dataset with 5B tokens of non-synthetic sources like the code-python-0.60-to-1.00 and web-0.50-to-1.00 subsets of AutoMathText. We also added 1M files from The Stack's Jupyter Notebooks, converted to script. They tend to have educational code interleaved with text. We also included ultrachat formatted in the chat format of LlaMa models, so we don't have to instruction-tune the model after the pre-training. Additionally, we upsampled twice the data from these seed sources to help with commonsense and reasoning: stories, AutoMathText & KhanAcademy.

We trained for 6 epochs, resulting in a model trained on 180B tokens with a sequence length of 2k, a global batch size of 1.3M tokens and a learning rate of 3e-4 with a cosine schedule for 140k steps. We used the tokenizer from Mistral-7B-v0.1.

How to use#

Although the model wasn't instruction-tuned after the pre-training. However, given that included UltraChat in the pre-training , you can use it in a Chat format using:

from transformers import AutoModelForCausalLM, AutoTokenizer

device = "cuda"  # for GPU usage or "cpu" for CPU usage

tokenizer = AutoTokenizer.from_pretrained("HuggingFaceTB/cosmo-1b")
model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/cosmo-1b").to(device)
prompt = "Generate a story involving a dog, an astronaut and a baker"
prompt= tokenizer.apply_chat_template([{"role": "user", "content": prompt}], tokenize=False)
inputs = tokenizer(prompt, return_tensors="pt").to(device)

output = model.generate(**inputs, max_length=300, do_sample=True, temperature=0.6, top_p=0.95, repetition_penalty=1.2)
print(tokenizer.decode(output[0]))

Output:

<s><s> [INST] Generate a story involving a dog, an astronaut and a baker [/INST] Once upon a time, there was a sweet little terrier named Max who lived in the bustling city of New York. He loved nothing more than chasing after his owner, Dr. Sarah Johnson, as she worked tirelessly on her latest invention - a spaceship that would take humans to distant galaxies!

One day, Dr. Johnson decided it was time for her to leave Earth's atmosphere behind and embark on this exciting adventure with her loyal companion, Max. She knew he had always been fascinated by space travel, so she hoped he would be just as excited about the journey ahead.

As they boarded their rocket ship and blasted off into outer space, Max felt both nervous and thrilled at the same time. His ears perked up every time they passed clouds or saw stars twinkling far out from earth. But as days turned into weeks, Max started feeling homesick. The vast emptiness around him made him feel lonely and isolated.

Meanwhile back on planet Earth, Mr. Baker was busy baking cookies when suddenly, an idea popped into his head. Why not send some treats along with Dr. Johnson's family? It might make them all feel better knowing that someone else was also having fun exploring the universe.

You can also use the model in text completion mode i.e without applying the chat template, but it might not follow isntructions.

from transformers import AutoModelForCausalLM, AutoTokenizer

device = "cuda"  # for GPU usage or "cpu" for CPU usage

tokenizer = AutoTokenizer.from_pretrained("HuggingFaceTB/cosmo-1b")
model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/cosmo-1b").to(device)
prompt = "Photosynthesis is"

inputs = tokenizer(prompt, return_tensors="pt").to(device)
output = model.generate(**inputs, max_length=300, do_sample=True, temperature=0.6, top_p=0.95, repetition_penalty=1.2)
print(tokenizer.decode(output[0]))

Output:

<s> Photosynthesis is the process by which green plants, algae and some bacteria convert light energy into chemical energy in order to fuel their metabolic processes. The reaction takes place within specialized cells called chloroplasts. This article focuses on the electron transport chain (ETC), a critical part of photosystem II where most of the solar-driven electrons are passed through before being reduced to water.

Evaluation#

Below are the evaluation results of Cosmo-1B. The model is better than TinyLlama 1.1B on ARC-easy, ARC-challenge, OpenBookQA and MMLU, and has comparable performance to Qwen-1.5-1B on ARC-challenge and OpenBookQA. However, we notice some perfoamnce gaps compared to Phi-1.5 suggesting a better synthetic generation quality which can be related to the LLM used for generation, topic coverage or prompts.

Image: image/png

Limitations#

This is a small 1.8B model trained on synthetic data, so it might hallucinate, give incomplete or incorrect answers.

Training#

Model#

  • Architecture: Llama-2
  • Pretraining steps: 120k
  • Pretraining tokens: 180B
  • Precision: bfloat16

Hardware#

  • GPUs: 160 H100
  • Training time: 15hours

The training loss:

Image: image/png

Files

11 files · 6.97 GBWeights 6.97 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 11 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md6.07 KBac02ecfc595d2233e212917e2f969415395e4bac91fc27bc9b483610153b9071
config.json736 B3d9aa9aca657faaa492c971597a89fc127b7de78779ec9f8a10ade82d936964e
generation_config.json111 Bdaeebe28ce3b1af3fcd69bbd039b838616198b8a2cfc00a622130ef08a01972d
model-00001-of-00002.safetensors4.96 GBdb278569eb91216b8453b974403d655718093f27e37e188b652d1dfe43aa3d39
model-00002-of-00002.safetensors2.01 GB2c9fdb662cbf080743fdcc0b30d37f4b321026d9438915ee302e10e1acaaad9e
model.safetensors.index.json18.0 KB92254f034714fe97c2871da4b0b7e9a939ad1d6b0d06fcc8e5ba6006434e9593
special_tokens_map.json72 B96bdbb8504d9967606e5f661ccc7cbbac44a3661af863a7a58614670a0ccab33
tokenizer.json1.80 MBfc4f0bd70b3709312d9d1d9e5ba674794b6bc5abc17429897a540f93882f25fc
tokenizer.model493 KBdadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
tokenizer_config.json967 B747ec99bae3fd9d7bf9c3b9172e5ca0d82ca0d23d64a58ef1752b612f196817b
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
e700c4809c pinned now manifest updated, same commit2026-11-14 21:11 UTC11 files · 6.97 GB
e700c4809c2026-11-14 21:11 UTC11 files · 6.97 GB

Use it

$ fw get HuggingFaceTB/cosmo-1b
# manifest sha256 a96fad86874f… · 6.97 GB · 11 files
$ fw verify ./cosmo-1b HuggingFaceTB/cosmo-1b
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/HuggingFaceTB/cosmo-1b.json --dir ./cosmo-1b $ python3 fw.py verify ./cosmo-1b ./HuggingFaceTB__cosmo-1b.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/cosmo-1b --revision e700c4809c319c50fd63f562353ffeb8ea809ea1 --local-dir ./cosmo-1b
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("HuggingFaceTB/cosmo-1b", revision="e700c4809c319c50fd63f562353ffeb8ea809ea1") model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/cosmo-1b", revision="e700c4809c319c50fd63f562353ffeb8ea809ea1", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve HuggingFaceTB/cosmo-1b --revision e700c4809c319c50fd63f562353ffeb8ea809ea1

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
ac02ecfc595d2233e212917e2f969415395e4bac91fc27bc9b483610153b9071
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Newsgroups: alt.freeweights.smollmSubject: cosmo-1bDate: 2026-11-14Commit: e700c48Signed: 2DC28CC7B26A283B ✓
Upstream
HuggingFaceTB/cosmo-1b
Pinned commit
e700c4809c319c50fd63f562353ffeb8ea809ea1
Manifest
cosmo-1b.json · .minisig
Manifest sha256
a96fad86874f3c960e702b9acd95dec8ce24a60b5b02e1e55dd60c552a5282e5
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:11 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/cosmo-1b.json $ curl -O https://freeweights.allternit.com/manifests/HuggingFaceTB/cosmo-1b.json.minisig $ minisign -Vm cosmo-1b.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download HuggingFaceTB/cosmo-1b
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. cosmo-1b.json. Provenance. Takedown history: none.
From: HuggingFaceTB <huggingface.co/HuggingFaceTB>Subject: 135M-lc-100k-rope-12B
From: nisten <huggingface.co/nisten>Subject: Biggie-SmoLlm-0.4B
From: onnx-community <huggingface.co/onnx-community>Subject: Biggie-SmoLlm-0.4B-ONNX
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-1.7B-bnb-4bit
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-1.7B-Instruct
From: unsloth <huggingface.co/unsloth>Subject: SmolLM-135M-bnb-4bit