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

Yi-Coder-9B-Chat

Date: 2026-11-15Commit: 356a1f8Signed: 2DC28CC7B26A283B ✓

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

8.8B params17.7GBYi-Coder-9B-Chatsafetensorspermissive
FactsParams8.8BSize17.7 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get 01-ai/Yi-Coder-9B-Chat
# manifest sha256 533b9dc6ea5c… · 17.7 GB · 12 files
$ fw verify ./Yi-Coder-9B-Chat 01-ai/Yi-Coder-9B-Chat
From sourceHosted (signed)01-ai/Yi-Coder-9B-ChatLast check: 2026-11-15 02:43 UTC

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

Fine-tune of Yi-Coder-9B.

Works with

Overview

Size
17.7 GB
Weights
17.7 GB (safetensors)
Parameters
8.8B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
12, 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-9B

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 02:43 UTCpassed

Model card

From the publisher at commit 356a1f8. 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

12 files ยท 17.7 GBWeights 17.7 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 12 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md5.18 KB9d97418b74124986be89c0c8a9a264b3eb1dd309c4e2dad828550f47a2d0c243
config.json683 Bb1651532a93794fef9d1cddbe14aed5d40a96c04ab73c8708a0b125da425cf06
generation_config.json132 Bada25958d6fef607707816ae3a704b9d341fe07bc49e43ee5512494bb115ead7
model-00001-of-00004.safetensors4.93 GBee4746e218b60b800840c62cef670c309489b832d3908a3605800c2769596601
model-00002-of-00004.safetensors4.98 GBe37ba7b04039ed5e9564d54c45cece5166ed7c86f75528567f019f9c2ab31ba9
model-00003-of-00004.safetensors4.97 GB03c62b8eaec0ec5478d9dfdfe6e5ca0424173d4a2dab647d8a0d6bd029e892f2
model-00004-of-00004.safetensors2.78 GB09e5d5d075c8d582b50780b541e97ea625e192665fa7eeb211963fa421ff368d
model.safetensors.index.json35.8 KBb84d6ebdcbaa08a91d99947222b5ee792a4503f6e4e857c07fb6cf2a3c8a2117
special_tokens_map.json570 B60e13afe3f527b158f80280639bf11d3f7bf5ac660fb282be3dd5669042a6099
tokenizer.model1.03 MB386c49cf943d71aa110361135338c50e38beeff0a66593480421f37b319e1a39
tokenizer_config.json1.89 KB1deeef9eb7e68757c205b334cbfebd2e20281761634acb4792a8ff78ccb524f5
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
356a1f8d4e pinned now2026-11-15 02:43 UTC12 files ยท 17.7 GB

Use it

$ fw get 01-ai/Yi-Coder-9B-Chat
# manifest sha256 533b9dc6ea5c… · 17.7 GB · 12 files
$ fw verify ./Yi-Coder-9B-Chat 01-ai/Yi-Coder-9B-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-9B-Chat.json --dir ./Yi-Coder-9B-Chat $ python3 fw.py verify ./Yi-Coder-9B-Chat ./01-ai__Yi-Coder-9B-Chat.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download 01-ai/Yi-Coder-9B-Chat --revision 356a1f8d4e4a606d0b879e54191ca809918576b8 --local-dir ./Yi-Coder-9B-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-9B-Chat", revision="356a1f8d4e4a606d0b879e54191ca809918576b8") model = AutoModelForCausalLM.from_pretrained("01-ai/Yi-Coder-9B-Chat", revision="356a1f8d4e4a606d0b879e54191ca809918576b8", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve 01-ai/Yi-Coder-9B-Chat --revision 356a1f8d4e4a606d0b879e54191ca809918576b8

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
9d97418b74124986be89c0c8a9a264b3eb1dd309c4e2dad828550f47a2d0c243
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-9B-ChatDate: 2026-11-15Commit: 356a1f8Signed: 2DC28CC7B26A283B ✓
Upstream
01-ai/Yi-Coder-9B-Chat
Pinned commit
356a1f8d4e4a606d0b879e54191ca809918576b8
Manifest
Yi-Coder-9B-Chat.json ยท .minisig
Manifest sha256
533b9dc6ea5cd06936b24ac4fc0648c7a39fde55a110cdec3ab34391027161ad
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:43 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/01-ai/Yi-Coder-9B-Chat.json $ curl -O https://freeweights.allternit.com/manifests/01-ai/Yi-Coder-9B-Chat.json.minisig $ minisign -Vm Yi-Coder-9B-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-9B ยท 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-9B-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-9B-Chat.json. Provenance. Takedown history: none.

Variants

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