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

Yi-Coder-9B

Date: 2026-11-15Commit: bc6e63fSigned: 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-9Bsafetensorspermissive
FactsParams8.8BSize17.7 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get 01-ai/Yi-Coder-9B
# manifest sha256 da477068661c… · 17.7 GB · 13 files
$ fw verify ./Yi-Coder-9B 01-ai/Yi-Coder-9B
From sourceHosted (signed)01-ai/Yi-Coder-9BLast check: 2026-11-15 02:43 UTC

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

Runs withAIBrixBentoMLCTranslate2ExLlamaV2ExLlamaV3exofastllmFlashInfergpu-unlockKTransformersLitServeLMCacheLMDeployLocalAImistral.rsMLC LLMMooncakeSGLangText Generation WebUItinygradTransformersTriton Inference ServervLLMXinferenceFine-tune withAccelerateAlignment HandbookAxolotlColossal-AIDeepSpeedEasyR1FlashAttentionH2O LLM StudioJAXKerasLiger KernelLitGPTLLaMA-FactoryMegatron-LMms-swiftnanotronOLMo-coreOpenRLHFOumiPEFTPyTorch Lightningsd-scriptsSimpleTunerTorchTitantorchtuneTransformer EngineTRLUnslothverlConvert withAQLMAutoRoundCore ML ToolsExecuTorchGPTQModelLLM CompressormergekitNeural CompressorOliveONNXOptimum QuantoOptimumsafetensorsTensorRT Model OptimizertorchaoEvaluate withAutoevalsDeepEvalEvaluateHELMLightEvallm-evaluation-harnessOpenCompassOpikRagassimple-evalsSWE-benchTruLensWeaveScan withAgentDojoAI Fairness 360DeepTeamDetoxifyFairlearngarakGiskardGuardrailsMCP ScannerModelScanNeMo GuardrailspicklescanpromptfooWorks withAgent Development KitAG2Google AI Edge GalleryAiderany-llmAnythingLLMBAMLbrowser-useCAMELHugging Face Chat UIChatboxCherry StudioClineCodex CLICogneeCrewAIDeerFlowDSPyEnchantedGemini CLIGitHub MCP ServergooseGPT ResearcherGradioGraphitiGuidanceHollamaInstructorKilo CodeLangflowLangGraphLiteLLMLlamaIndexLLMLocalAGILoLLMs WebUIMCP Python SDKMem0MetaGPTNextChatOllama JavaScriptOllama PythonOpenAI Agents SDKopencodeOpenHandsotermOutlinesPage AssistPlaywright MCPPortkey AI GatewayPrivateGPTQwen CodeRWKV RunnerSemantic KernelsmolagentsStrands AgentsVaneXGrammar

Overview

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

Model card

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

13 files ยท 17.7 GBWeights 17.7 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 13 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md5.15 KBa4abe7ab8bb78f0463e9da9f9e4a65f81a3b4e64e86c76a8f2762b339b3c293b
config.json682 B3bbf94a552aa1ff002d62bc082aad2faa64d8190a0ecb1c5805fbcecceb4956d
generation_config.json132 Bfd13175799de9fb776d4dcd603f1344863da0f581dcbac71209fe9a126ecfca4
model-00001-of-00004.safetensors4.93 GB529b10d1e11473186693d86dbffd5e22cf44335637b57211ac870e8476f9209b
model-00002-of-00004.safetensors4.98 GBc08ce097fff85a7f37d443744403a13f40ea44a31ee914cb955cdf0cfacac465
model-00003-of-00004.safetensors4.97 GB35cb5cd1fc4f0c4f2b3c8d758db6e706a2972491a658208d4a6122061b830d10
model-00004-of-00004.safetensors2.78 GBbd81fbe465310fbd4202ae60d3332086bbdf43e96f44320c5aa4de65635d195d
model.safetensors.index.json35.8 KBb84d6ebdcbaa08a91d99947222b5ee792a4503f6e4e857c07fb6cf2a3c8a2117
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
bc6e63fd26 pinned now2026-11-15 02:43 UTC13 files ยท 17.7 GB

Use it

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

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
a4abe7ab8bb78f0463e9da9f9e4a65f81a3b4e64e86c76a8f2762b339b3c293b
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-9BDate: 2026-11-15Commit: bc6e63fSigned: 2DC28CC7B26A283B ✓
Upstream
01-ai/Yi-Coder-9B
Pinned commit
bc6e63fd26a654ee42dba737a553310bfa01dc5d
Manifest
Yi-Coder-9B.json ยท .minisig
Manifest sha256
da477068661cd4ba34f747c04c06cf64a0babb775c28cb3e41b34d2704ea3896
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.json $ curl -O https://freeweights.allternit.com/manifests/01-ai/Yi-Coder-9B.json.minisig $ minisign -Vm Yi-Coder-9B.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

1 model in the catalog name this one as their parent.

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