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

Yi-Coder-1.5B-Chat

Date: 2026-11-15Commit: 92fdd1bSigned: 2DC28CC7B26A283B ✓

Text generation model with 1.5B parameters. Safetensors weights, 2.95 GB in all. Published by 01-ai under Apache-2.0.

1.5B params2.95GBYi-Coder-1.5B-Chatsafetensorspermissive
FactsParams1.5BSize2.95 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get 01-ai/Yi-Coder-1.5B-Chat
# manifest sha256 d061bfc994b7… · 2.95 GB · 8 files
$ fw verify ./Yi-Coder-1.5B-Chat 01-ai/Yi-Coder-1.5B-Chat
From sourceHosted (signed)01-ai/Yi-Coder-1.5B-ChatLast check: 2026-11-15 03:41 UTC

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

Fine-tune of Yi-Coder-1.5B.

Works with

Overview

Size
2.95 GB
Weights
2.95 GB (safetensors)
Parameters
1.5B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
8, each with a sha256
Publisher
01-ai
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Base model: 01-ai/Yi-Coder-1.5B

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:41 UTCpassed

Model card

From the publisher at commit 92fdd1b. 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

8 files ยท 2.95 GBWeights 2.95 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 8 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md5.15 KBc6a1acaec62b54a13b69a36eab30bb81b9ee4a098739935ced8d5b85a6ffcbaa
config.json683 B4d16f1187d5d1a43fdb1284b1749d674b62a8477583eb608df0e7fae934756ff
generation_config.json132 Bada25958d6fef607707816ae3a704b9d341fe07bc49e43ee5512494bb115ead7
model.safetensors2.95 GB510afc33105d216c056e1f11d8ca6b2ae62c77dab5eed7d03f55ea5845e460da
special_tokens_map.json570 B60e13afe3f527b158f80280639bf11d3f7bf5ac660fb282be3dd5669042a6099
tokenizer.model1.03 MB386c49cf943d71aa110361135338c50e38beeff0a66593480421f37b319e1a39
tokenizer_config.json1.89 KBfb7822adde5bd31889027f620c663cbb5cb934ef0102c2a9b4b9e74476899c90
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
92fdd1b2f1 pinned now2026-11-15 03:41 UTC8 files ยท 2.95 GB

Use it

$ fw get 01-ai/Yi-Coder-1.5B-Chat
# manifest sha256 d061bfc994b7… · 2.95 GB · 8 files
$ fw verify ./Yi-Coder-1.5B-Chat 01-ai/Yi-Coder-1.5B-Chat
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-Chat.json --dir ./Yi-Coder-1.5B-Chat $ python3 fw.py verify ./Yi-Coder-1.5B-Chat ./01-ai__Yi-Coder-1.5B-Chat.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-Chat --revision 92fdd1b2f1539ac990e7f4a921db5601da2f0299 --local-dir ./Yi-Coder-1.5B-Chat
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("01-ai/Yi-Coder-1.5B-Chat", revision="92fdd1b2f1539ac990e7f4a921db5601da2f0299") model = AutoModelForCausalLM.from_pretrained("01-ai/Yi-Coder-1.5B-Chat", revision="92fdd1b2f1539ac990e7f4a921db5601da2f0299", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve 01-ai/Yi-Coder-1.5B-Chat --revision 92fdd1b2f1539ac990e7f4a921db5601da2f0299

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
c6a1acaec62b54a13b69a36eab30bb81b9ee4a098739935ced8d5b85a6ffcbaa
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.5B-ChatDate: 2026-11-15Commit: 92fdd1bSigned: 2DC28CC7B26A283B ✓
Upstream
01-ai/Yi-Coder-1.5B-Chat
Pinned commit
92fdd1b2f1539ac990e7f4a921db5601da2f0299
Manifest
Yi-Coder-1.5B-Chat.json ยท .minisig
Manifest sha256
d061bfc994b712c5a49d775904605afbfc62cc1389e014e6cc65c6300977ae8d
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:41 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-Chat.json $ curl -O https://freeweights.allternit.com/manifests/01-ai/Yi-Coder-1.5B-Chat.json.minisig $ minisign -Vm Yi-Coder-1.5B-Chat.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

Parent

01-ai/Yi-Coder-1.5B ยท this model is a finetune of it

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

Quantizations
2
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download 01-ai/Yi-Coder-1.5B-Chat
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-Chat.json. Provenance. Takedown history: none.

Variants

2 quantized or adapter builds of Yi-Coder-1.5B-Chat. 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