alt.freeweights.text / Yi-Coder-1.5B
From: 01-ai <huggingface.co/01-ai>Newsgroups: alt.freeweights.textSubject:

Yi-Coder-1.5B

Date: 2026-11-15Commit: 00e59e6Signed: 2DC28CC7B26A283B ✓

Model with 1.5B parameters. Safetensors weights, 2.96 GB in all. Published by 01-ai under Apache-2.0.

1.5B params2.96GBYi-Coder-1.5Bsafetensorspermissive
FactsParams1.5BSize2.96 GBFormatssafetensorsTasknot taggedLicenseApache-2.0From sourcepermissive
$ fw get 01-ai/Yi-Coder-1.5B
# manifest sha256 913f2ae0b65e… · 2.96 GB · 9 files
$ fw verify ./Yi-Coder-1.5B 01-ai/Yi-Coder-1.5B
From sourceHosted (signed)01-ai/Yi-Coder-1.5BLast check: 2026-11-15 03:52 UTC

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

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
2.96 GB
Weights
2.95 GB (safetensors)
Parameters
1.5B
Formats
safetensors
Task
not tagged
License
Apache-2.0 (permissive)
Files
9, each with a sha256
Publisher
01-ai
Added
2026-11-15
Section
alt.freeweights.text
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-15 03:52 UTCpassed

Model card

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

Image: image

๐Ÿ™ GitHub โ€ข ๐Ÿ‘พ Discord โ€ข ๐Ÿค Twitter โ€ข ๐Ÿ’ฌ WeChat

๐Ÿ“ Paper โ€ข ๐Ÿ’ช Tech Blog โ€ข ๐Ÿ™Œ FAQ โ€ข ๐Ÿ“— Learning Hub

Intro#

Yi-Coder is a series of open-source code language models that delivers state-of-the-art coding performance with fewer than 10 billion parameters.

Key features:

  • Excelling in long-context understanding with a maximum context length of 128K tokens.
  • Supporting 52 major programming languages:
  'java', 'markdown', 'python', 'php', 'javascript', 'c++', 'c#', 'c', 'typescript', 'html', 'go', 'java_server_pages', 'dart', 'objective-c', 'kotlin', 'tex', 'swift', 'ruby', 'sql', 'rust', 'css', 'yaml', 'matlab', 'lua', 'json', 'shell', 'visual_basic', 'scala', 'rmarkdown', 'pascal', 'fortran', 'haskell', 'assembly', 'perl', 'julia', 'cmake', 'groovy', 'ocaml', 'powershell', 'elixir', 'clojure', 'makefile', 'coffeescript', 'erlang', 'lisp', 'toml', 'batchfile', 'cobol', 'dockerfile', 'r', 'prolog', 'verilog'

For model details and benchmarks, see Yi-Coder blog and Yi-Coder README.

Image: demo1

Models#

NameTypeLengthDownload
Yi-Coder-9B-ChatChat128K๐Ÿค— Hugging Face โ€ข ๐Ÿค– ModelScope โ€ข ๐ŸŸฃ wisemodel
Yi-Coder-1.5B-ChatChat128K๐Ÿค— Hugging Face โ€ข ๐Ÿค– ModelScope โ€ข ๐ŸŸฃ wisemodel
Yi-Coder-9BBase128K๐Ÿค— Hugging Face โ€ข ๐Ÿค– ModelScope โ€ข ๐ŸŸฃ wisemodel
Yi-Coder-1.5BBase128K๐Ÿค— Hugging Face โ€ข ๐Ÿค– ModelScope โ€ข ๐ŸŸฃ wisemodel

Benchmarks#

As illustrated in the figure below, Yi-Coder-9B-Chat achieved an impressive 23% pass rate in LiveCodeBench, making it the only model with under 10B parameters to surpass 20%. It also outperforms DeepSeekCoder-33B-Ins at 22.3%, CodeGeex4-9B-all at 17.8%, CodeLLama-34B-Ins at 13.3%, and CodeQwen1.5-7B-Chat at 12%.

Image: bench1

Quick Start#

You can use transformers to run inference with Yi-Coder models (both chat and base versions) as follows:

from transformers import AutoTokenizer, AutoModelForCausalLM

device = "cuda" # the device to load the model onto
model_path = "01-ai/Yi-Coder-9B-Chat"

tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(model_path, device_map="auto").eval()

prompt = "Write a quick sort algorithm."
messages = [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(device)

generated_ids = model.generate(
    model_inputs.input_ids,
    max_new_tokens=1024,
    eos_token_id=tokenizer.eos_token_id  
)
generated_ids = [
    output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]

response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)

For getting up and running with Yi-Coder series models quickly, see Yi-Coder README.

Files

9 files ยท 2.96 GBWeights 2.95 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 9 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md5.10 KB9a8ee77cf77175edfd8df3b0786fd6e67e3baac11f0e8a2ad44dc41d29f54548
config.json682 Beb89cf6432c7914e60887bca1b0797615d296d04b25957a9bac525246d6b5265
generation_config.json132 Bfd13175799de9fb776d4dcd603f1344863da0f581dcbac71209fe9a126ecfca4
model.safetensors2.95 GB8739bb63ec22de1cad21ca59b6c16245d16cdbdeaa3a406d3c646ba77979970e
special_tokens_map.json573 B1f758131582e2df1391a2a0dc54a230bc54825aeff13498c1d2a48f1700e42eb
tokenizer.json3.56 MB18da9ff3421e5c878bd223ce42316058c0bdf688c114aa57e469ed5b91b4c3bc
tokenizer.model1.03 MB386c49cf943d71aa110361135338c50e38beeff0a66593480421f37b319e1a39
tokenizer_config.json953 Bd17bc695273ea8fde443524a79a39caadb548b40912fcfc0ab2bfc58eb690d9b
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
00e59e64f4 pinned now2026-11-15 03:52 UTC9 files ยท 2.96 GB

Use it

$ fw get 01-ai/Yi-Coder-1.5B
# manifest sha256 913f2ae0b65e… · 2.96 GB · 9 files
$ fw verify ./Yi-Coder-1.5B 01-ai/Yi-Coder-1.5B
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/01-ai/Yi-Coder-1.5B.json --dir ./Yi-Coder-1.5B $ python3 fw.py verify ./Yi-Coder-1.5B ./01-ai__Yi-Coder-1.5B.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download 01-ai/Yi-Coder-1.5B --revision 00e59e64f47d3c78e4cfbdd345888479797e8109 --local-dir ./Yi-Coder-1.5B

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-15
Text in
README.md
Text sha256
9a8ee77cf77175edfd8df3b0786fd6e67e3baac11f0e8a2ad44dc41d29f54548
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: 01-ai <huggingface.co/01-ai>Newsgroups: alt.freeweights.textSubject: Yi-Coder-1.5BDate: 2026-11-15Commit: 00e59e6Signed: 2DC28CC7B26A283B ✓
Upstream
01-ai/Yi-Coder-1.5B
Pinned commit
00e59e64f47d3c78e4cfbdd345888479797e8109
Manifest
Yi-Coder-1.5B.json ยท .minisig
Manifest sha256
913f2ae0b65e8adac6587d6b8b03d38c30bf1fab55d5c595ec2addd8a440340b
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:52 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/01-ai/Yi-Coder-1.5B.json $ curl -O https://freeweights.allternit.com/manifests/01-ai/Yi-Coder-1.5B.json.minisig $ minisign -Vm Yi-Coder-1.5B.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

2 models in the catalog name this one as their parent.

Fine-tunes
1
Quantizations
1
Fine-tunes 1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download 01-ai/Yi-Coder-1.5B
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. Yi-Coder-1.5B.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of Yi-Coder-1.5B. Each has its own license check and page.

From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B