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

NextCoder-14B

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

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

14.8B params59.1GBNextCoder-14Bsafetensorspermissive
FactsParams14.8BSize59.1 GBFormatssafetensorsTasktext generationLicenseMITFrom sourcepermissive
$ fw get microsoft/NextCoder-14B
# manifest sha256 f4af91456a1f… · 59.1 GB · 23 files
$ fw verify ./NextCoder-14B microsoft/NextCoder-14B
From sourceHosted (signed)microsoft/NextCoder-14BLast check: 2026-11-15 03:31 UTC

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

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

Works with

Overview

Size
59.1 GB
Weights
59.1 GB (safetensors)
Parameters
14.8B
Formats
safetensors
Task
text generation
License
MIT (permissive)
Files
23, 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-14B-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:31 UTCpassed

Model card

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

NextCoder-14B#

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 14B 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: 14.7B
  • Number of Paramaters (Non-Embedding): 13.1B
  • Number of Layers: 48
  • 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-14B"

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

23 files · 59.1 GBWeights 59.1 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 23 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md5.52 KBe00e9a7e3f7b61da19ba2928ece5fa7a81c5c1968b7561983f55f47c02540977
added_tokens.json605 B58b54bbe36fc752f79a24a271ef66a0a0830054b4dfad94bde757d851968060b
config.json731 Bbe4d70f6c183f7bb621f210a48fba8e98376f1de458f27dcf0585bc23e401860
generation_config.json243 B7d0feffe1eab2b4a681aeb9f03dad1d7a470bc6aa844fa40ff6e5e64d9ae224a
merges.txt1.67 MB8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5
model-00001-of-00012.safetensors4.75 GBbd9f2c09cedd9cba6f37c4bcf85ac3e0d6b205830bcc23b15dda4a98c50d4247
model-00002-of-00012.safetensors4.97 GBbf40d8fc15075357ae37375996f3c95c7f3ffe872cece0550d706fb775c1c5ae
model-00003-of-00012.safetensors4.94 GBaa8b95b589db63ad9087f2b1bffe352fe01b552c2655d80610c58ad560dcc129
model-00004-of-00012.safetensors4.97 GBc9dbbf183d0eb302e44d299176d188fc9a38d22588bf3d63ed3c12c30ea338ef
model-00005-of-00012.safetensors4.94 GB3513c656c212da857ec4f1dd56b52cc0f62e894b3233528f717f237213aa51e8
model-00006-of-00012.safetensors4.97 GB421e27825dd5bd023b1c60e912d6c779037a39a01eb608905fac5bdfe7cfe9ca
model-00007-of-00012.safetensors4.94 GB3fae77abf22393ceb6f24476b28eb6ff13d75f969c991acbbcdeda3ea132237b
model-00008-of-00012.safetensors4.97 GBc9b526d07c1315b843271a9db7dbdee26196e7d2d1dc4c80363a042239b84f3e
model-00009-of-00012.safetensors4.94 GBa355c70d54fce09bb6760558bf4a490afafe0fa57cba9dae89b6d6f84332b911
model-00010-of-00012.safetensors4.97 GB8abdf9c97ebf95878118564a2a5598b855f28c5b48a088909569f4b7f6c829fb
model-00011-of-00012.safetensors4.94 GB22015acdfff2289863c176b026282436b4be5f9245ce5ef1f7c38bacc599be62
model-00012-of-00012.safetensors4.78 GB09b4cd602379fb10214123d4a4207cfe41f120466fda573dadb2a8827df38e92
model.safetensors.index.json47.5 KBfe4e87aba786de956e2398a845235db29acff9a0d9eb1ad12dc430075096f22e
special_tokens_map.json613 B76862e765266b85aa9459767e33cbaf13970f327a0e88d1c65846c2ddd3a1ecd
tokenizer.json11.4 MB9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
tokenizer_config.json7.30 KB47a4328c17254f5f273ab9fa4bd5b722e73c308f9acaadef57790f240d0cc91c
vocab.json2.78 MBca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
fed0526738 pinned now2026-11-15 03:31 UTC23 files · 59.1 GB

Use it

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

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
e00e9a7e3f7b61da19ba2928ece5fa7a81c5c1968b7561983f55f47c02540977
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-14BDate: 2026-11-15Commit: fed0526Signed: 2DC28CC7B26A283B ✓
Upstream
microsoft/NextCoder-14B
Pinned commit
fed0526738a13d788bf439c3dca954fbc5c6f57d
Manifest
NextCoder-14B.json · .minisig
Manifest sha256
f4af91456a1ffbeba2bca5ad29b69c0ac5035337e6432f3974764056421fe09e
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:31 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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

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

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