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

NextCoder-7B

Date: 2026-11-15Commit: 962f9faSigned: 2DC28CC7B26A283B ✓

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

7.6B params30.5GBNextCoder-7Bsafetensorspermissive
FactsParams7.6BSize30.5 GBFormatssafetensorsTasktext generationLicenseMITFrom sourcepermissive
$ fw get microsoft/NextCoder-7B
# manifest sha256 8515fa41dbb6… · 30.5 GB · 18 files
$ fw verify ./NextCoder-7B microsoft/NextCoder-7B
From sourceHosted (signed)microsoft/NextCoder-7BLast check: 2026-11-15 03:27 UTC

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

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

Works with

Overview

Size
30.5 GB
Weights
30.5 GB (safetensors)
Parameters
7.6B
Formats
safetensors
Task
text generation
License
MIT (permissive)
Files
18, 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-7B-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:27 UTCpassed

Model card

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

NextCoder-7B#

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-7B 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: 7.61B
  • Number of Paramaters (Non-Embedding): 6.53B
  • Number of Layers: 28
  • Number of Attention Heads (GQA): 28 for Q and 4 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-7B"

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

18 files · 30.5 GBWeights 30.5 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 18 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md5.52 KB36820604d818600c0093f6dcbb0b1ae0837888aeb91a4c05c9e8d50da27794c2
added_tokens.json605 B58b54bbe36fc752f79a24a271ef66a0a0830054b4dfad94bde757d851968060b
config.json777 B2f16373c013ae6c9761681c0dc7575d3773fbdbbc10875f4a137c90d19d86d19
generation_config.json121 Bc3c4eb7f6b0e6db00de4c23f1e9ad479ec40fed2a3f77137a51366df57a10762
merges.txt1.67 MB8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5
model-00001-of-00007.safetensors4.98 GB1cdb557e6751932ec8396d956839373662a03d8c9418574ee663492c1d26a4f7
model-00002-of-00007.safetensors4.78 GB206abd13dc686b778759b7c71dad03dd2fffa9e5bbe0c7b4122c460ed0b10bf0
model-00003-of-00007.safetensors4.93 GBe29d8c651e9f8d08a2b9fd6ac9aea6991d0a43d860f93ed2db6d168f3f9ca859
model-00004-of-00007.safetensors4.93 GBe706cd04824c579e9553c9066587e5e928440459b2141f65c1a0fa97897d07b4
model-00005-of-00007.safetensors5.00 GB32f1e16ea373ba9ff8030406ae8c535486a3f172476495a65eb7fa24e2c1f80b
model-00006-of-00007.safetensors3.66 GBa52b4df89529eb0a647e963161c15e5639f6eb5c7344a1c7fc078e0bcb4bdebb
model-00007-of-00007.safetensors2.18 GB1240db91cf893b12d62b4a46e0a60a7e0d09120ec920ba791e4d49025db0c960
model.safetensors.index.json27.8 KB3cb581aa586322d386864a9f80d0adbaa1f0f838cc310d7d7670990fa42121be
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
962f9fabe1 pinned now2026-11-15 03:27 UTC18 files · 30.5 GB

Use it

$ fw get microsoft/NextCoder-7B
# manifest sha256 8515fa41dbb6… · 30.5 GB · 18 files
$ fw verify ./NextCoder-7B microsoft/NextCoder-7B
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/microsoft/NextCoder-7B.json --dir ./NextCoder-7B $ python3 fw.py verify ./NextCoder-7B ./microsoft__NextCoder-7B.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download microsoft/NextCoder-7B --revision 962f9fabe1856edb99398a35b671c319da46840a --local-dir ./NextCoder-7B
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-7B", revision="962f9fabe1856edb99398a35b671c319da46840a") model = AutoModelForCausalLM.from_pretrained("microsoft/NextCoder-7B", revision="962f9fabe1856edb99398a35b671c319da46840a", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve microsoft/NextCoder-7B --revision 962f9fabe1856edb99398a35b671c319da46840a

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
36820604d818600c0093f6dcbb0b1ae0837888aeb91a4c05c9e8d50da27794c2
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-7BDate: 2026-11-15Commit: 962f9faSigned: 2DC28CC7B26A283B ✓
Upstream
microsoft/NextCoder-7B
Pinned commit
962f9fabe1856edb99398a35b671c319da46840a
Manifest
NextCoder-7B.json · .minisig
Manifest sha256
8515fa41dbb62d15f318ac74e15424f0c4229d83fcc347239c7906050ddde2b1
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:27 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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

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

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