alt.freeweights.text / NextCoder-32B
From: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.textSubject:

NextCoder-32B

Date: 2026-11-15Commit: c0b3d9fSigned: 2DC28CC7B26A283B ✓

Text generation model with 32.8B parameters. Safetensors weights, 131 GB in all. Published by microsoft under MIT.

32.8B params131GBNextCoder-32Bsafetensorspermissive
FactsParams32.8BSize131 GBFormatssafetensorsTasktext generationLicenseMITFrom sourcepermissive
$ fw get microsoft/NextCoder-32B
# manifest sha256 9c57dc078e72… · 131 GB · 40 files
$ fw verify ./NextCoder-32B microsoft/NextCoder-32B
From sourceHosted (signed)microsoft/NextCoder-32BLast check: 2026-11-15 03:51 UTC

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

Fine-tune of Qwen2.5-Coder-32B-Instruct.

Works with

Overview

Size
131 GB
Weights
131 GB (safetensors)
Parameters
32.8B
Formats
safetensors
Task
text generation
License
MIT (permissive)
Files
40, each with a sha256
Publisher
microsoft
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Base model: Qwen/Qwen2.5-Coder-32B-Instruct

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

Model card

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

NextCoder-32B#

GitHub&nbsp&nbsp | &nbsp&nbsp Paper

NextCoder: Robust Adaptation of Code LMs to Diverse Code Edits (ICML'2025)

Introduction#

NextCoder is the latest series of Code-Editing large language models developed using the Qwen2.5-Coder Instruct variants as base and trained with novel Selective Knowledge Transfer finetuning methodology as introduced in the paper. NextCoder family model comes in 3 different sizes 7, 14, 32 billion parameters, to meet the needs of different developers. Following are the key improvements:

  • Significantly improvements in code editing, NextCoder-32B has performing on par with GPT-4o on complex benchmarks like Aider-Polyglot with performance increment of 44% from their base model.
  • No loss of generalizibility, due to our new finetuning method SeleKT
  • Long-context Support up to 32K tokens.

This repo contains the NextCoder-32B model, which has the following features:

  • Type: Causal Language Models
  • Training Stage: Post-training with SeleKT
  • Architecture: transformers with RoPE, SwiGLU, RMSNorm, and Attention QKV bias
  • Number of Parameters: 32.5B
  • Number of Paramaters (Non-Embedding): 31.0B
  • Number of Layers: 64
  • Number of Attention Heads (GQA): 40 for Q and 8 for KV

For more details, please refer to our blog, GitHub, Paper.

Requirements#

The code of NextCoder is based on Qwen2.5 base models which has been in the latest Hugging face transformers and we advise you to use the latest version of transformers.

With transformers<4.37.0, you will encounter the following error:

KeyError: 'qwen2'

Quickstart#

Here provides a code snippet with apply_chat_template to show you how to load the tokenizer and model and how to generate contents.

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "microsoft/NextCoder-32B"

model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained(model_name)

prompt = """
Fix the following function that divides two numbers to handle all the edge cases:

def divide(a, b)
  returm a/b
"""
messages = [
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)

generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=1024
)
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]

Evaluation and Performance#

ModelsHUMANEVALFIXCANITEDITAIDERPOLYGLOT
QwenCoder-2.5-3B73.237.136.8-
QwenCoder-2.5-3B-LoRA64.636.235.8-
QwenCoder-2.5-3B-SFT76.232.430.1-
NextCoder-3B75.642.437.6-
QwenCoder-2.5-7B73.848.159.4-
QwenCoder-2.5-7B-LoRA70.744.340.6-
QwenCoder-2.5-7B-SFT70.136.748.9-
NextCoder-7B81.150.565.7-
QwenCoder-2.5-14B87.858.166.99.3
QwenCoder-2.5-14B-LoRA78.050.966.25.3
QwenCoder-2.5-14B-SFT79.942.436.83.1
NextCoder-14B89.860.272.212.2
QwenCoder-2.5-32B90.261.072.916.4
QwenCoder-2.5-32B-LoRA82.352.460.26.7
QwenCoder-2.5-32B-SFT81.749.566.98.4
NextCoder-32B88.962.474.723.6

Comparison of base QwenCoder-2.5 models of different sizes and their SELEKT-enhanced versions across three code editing benchmarks.

Detailed evaluation results are reported in this 📑 paper.

Responsible AI Use#

The base models (from the QwenCoder-2.5 family) are suspectible to malicious prompts and may generate or execute harmful code. Our finetuning does not enhance or impede such behaviors. The users should use the models and their outputs responsibly and with caution. Model outputs should be subjected to additional analysis, including manual inspection, and sandboxing before execution.

Citation#

@inproceedings{aggarwal2025nextcoder,
author = {Aggarwal, Tushar and Singh, Swayam and Awasthi, Abhijeet and Kanade, Aditya and Natarajan, Nagarajan},
title = {NextCoder: Robust Adaptation of Code LMs to Diverse Code Edits},
booktitle = {International Conference on Machine Learning},
year = {2025},
url = {https://www.microsoft.com/en-us/research/publication/nextcoder-robust-adaptation-of-code-lms-to-diverse-code-edits/},
}

Files

40 files · 131 GBWeights 131 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 40 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md5.52 KBf6f4e7fcbe30d27472b1eb1569b30199353a9cd44b7c221d74348d6823b419b4
added_tokens.json605 B58b54bbe36fc752f79a24a271ef66a0a0830054b4dfad94bde757d851968060b
config.json684 B5581e6bb154dfa2b52c102a9a19df36190838d4ba97fbe792deb4bf7eaa12ee4
generation_config.json121 Bf8cf9df24598d7fbd834ec6a3d714880b02a8b93d6cba049b6807ea2be286e66
merges.txt1.67 MB8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5
model-00001-of-00029.safetensors4.50 GB1e60f3b741dc6776f889478351e76c92728e957f1669b6bb047dafe856760a95
model-00002-of-00029.safetensors4.72 GBd6b7b9a826735dce82924579ea9a738182c8733f595b973797e3bbcc6495fe31
model-00003-of-00029.safetensors4.47 GBc2d7f1c9cbaeae1e177817c31edfe958b4a19dbe42a5250bda12e215407688ce
model-00004-of-00029.safetensors4.47 GB002a803b6e05815f0be8324d8208d6fc1608629896a0b634e7c3116e1ad29d7b
model-00005-of-00029.safetensors4.72 GB28040c82bf59321d34c4c0159e150e283eff712773691547ec377327589f3ddc
model-00006-of-00029.safetensors4.47 GB9afd4b1d7df6cb59473089573475b28154590440b9b2f80f3858452c76f76d03
model-00007-of-00029.safetensors4.47 GB60fdeb3da289259d4b3fd1faa037d4a8506ef0cef05de2c30db15b0f0c2ef62d
model-00008-of-00029.safetensors4.72 GB2531b4f7bd57021a769b6afd1c2304b9cfc56bc6abb8e8f98788658ef58edab5
model-00009-of-00029.safetensors4.47 GB3e6fd42c453c13212932e2dc692d9dc89ad31a03eb12436968b3e79395f12191
model-00010-of-00029.safetensors4.47 GBe7992d53125fc20fff1250620a68d856581e93833c297ee19c59f54cd60d88a8
model-00011-of-00029.safetensors4.72 GB8c10956381d3989d4975883a5f654c537fff4c7b384398581b3909eecedac080
model-00012-of-00029.safetensors4.47 GB3ebe3d54170c65d0fd7731beeeb750bc6edc509e58e757f483cd31a3297dbcf9
model-00013-of-00029.safetensors4.47 GBb2174c7710d55c753bb9e744bd16835d8c8cc6546935b1366a1f5d6d697c2ce2
model-00014-of-00029.safetensors4.72 GBd29ecd7156d7c9391501d26fae3867acb0d0ae225048118987145f0849d90ae2
model-00015-of-00029.safetensors4.47 GB7dc5bb1ecbe262b5604dd0661e3f5b000b667d3f14ec253b529b01fa63790e6d
model-00016-of-00029.safetensors4.47 GB73b0481a47ca096a598ae20cfa83721c4f68f3ea96464fd52b826fcf80430896
model-00017-of-00029.safetensors4.72 GBdc0afd2d5e59d7661a2226d9a44bed2ceb154235ab4e0c3607b6020964887f88
model-00018-of-00029.safetensors4.47 GB49fcbc4da789642f675f44c5214960bfe1df5059549a06affdf8b11ad570a909
model-00019-of-00029.safetensors4.47 GB6c63b77185130cf0391544b60b1fff14da00cc3a0639102766ad001b364ea848
model-00020-of-00029.safetensors4.72 GBb4bef30ec039abdf046d0bd7079811d279094bfc00704662a9894041fd1d5b88
model-00021-of-00029.safetensors4.47 GB36422ac3c48bfa6a1f5b24319a11e59f2ad35f4dfe10c72d2dccd2368e271232
model-00022-of-00029.safetensors4.47 GB82c634e1aac70d9f3f5d828ae39303cfd2b3bf76e63c9f36c2b6b242ee239246
model-00023-of-00029.safetensors4.72 GB1c2e13a1090a32b300c5b9f521e41b13cde0c2f85fc96089c80b014a26dd142f
model-00024-of-00029.safetensors4.47 GBc52bbbe24553ec73ef7beb58cf1127eb9abbcbab2ddda5143a015b9f8989a1d2
model-00025-of-00029.safetensors4.47 GBed2897a43a30f9c7c4bd2efd7ea8eec1298efcc3c7335a679c977a73a151d2c6
model-00026-of-00029.safetensors4.72 GB7d8de85446a9bf643c089e34bc5e9b93cab34208600deff4031893cb5bc94b0a
model-00027-of-00029.safetensors4.47 GB619772d8a23089cb600b4dba11aaab32bf76dd70903dcb99b914403c013f247d
model-00028-of-00029.safetensors4.47 GB25eec097428de08ea36f5a74eadf0e9537f752884b0a22c26ee3e6f28b95d112
model-00029-of-00029.safetensors3.68 GBce8beb25cc144c89b4b022aa93172cb7afccab58b15da269508da8c97e9a9674
model.safetensors.index.json63.2 KB0dd5b3255abfe1163e0506a5008a70f2eb865f82f7cf45ffdd503236697a30a4
special_tokens_map.json613 B76862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd
tokenizer.json11.4 MB9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
tokenizer_config.json7.30 KB959e7f1d9a1b7641a6d6ce05ca97b75c7894fcb66cbe5a040406458fb1128ee4
vocab.json2.78 MBca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
c0b3d9f736 pinned now2026-11-15 03:51 UTC40 files · 131 GB

Use it

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

License

Name
MIT License
Id
MIT
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
f6f4e7fcbe30d27472b1eb1569b30199353a9cd44b7c221d74348d6823b419b4
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: microsoft <huggingface.co/microsoft>Newsgroups: alt.freeweights.textSubject: NextCoder-32BDate: 2026-11-15Commit: c0b3d9fSigned: 2DC28CC7B26A283B ✓
Upstream
microsoft/NextCoder-32B
Pinned commit
c0b3d9f7361a20010864dafa23cd0324628fcc12
Manifest
NextCoder-32B.json · .minisig
Manifest sha256
9c57dc078e72d0db1741ae0e39a799b05cf0d71dd852854b1516b0b27e5af145
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:51 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/microsoft/NextCoder-32B.json $ curl -O https://freeweights.allternit.com/manifests/microsoft/NextCoder-32B.json.minisig $ minisign -Vm NextCoder-32B.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

Qwen/Qwen2.5-Coder-32B-Instruct · this model is a finetune of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/NextCoder-32B
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. NextCoder-32B.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