alt.freeweights.text / AlchemistCoder-L-7B
From: internlm <huggingface.co/internlm>Newsgroups: alt.freeweights.textSubject:

AlchemistCoder-L-7B

Date: 2026-11-15Commit: 8e82ac7Signed: 2DC28CC7B26A283B ✓

Text generation model with 6.7B parameters. Safetensors weights, 13.5 GB in all. Published by internlm under Apache-2.0.

6.7B params13.5GBAlchemistCoder-L-7Bsafetensorspermissive
FactsParams6.7BSize13.5 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get internlm/AlchemistCoder-L-7B
# manifest sha256 1174c8dd6e54… · 13.5 GB · 11 files
$ fw verify ./AlchemistCoder-L-7B internlm/AlchemistCoder-L-7B
From sourceHosted (signed)internlm/AlchemistCoder-L-7BLast check: 2026-11-15 04:15 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
13.5 GB
Weights
13.5 GB (safetensors)
Parameters
6.7B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
11, each with a sha256
Publisher
internlm
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 04:15 UTCpassed

Model card

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

AlchemistCoder: Harmonizing and Eliciting Code Capability by Hindsight Tuning on Multi-source Data#

[๐Ÿค— HuggingFace] [๐Ÿ“ƒ Paper] [๐ŸŒ Project Page]

โœจ Highlights#

Abstract: Open-source Large Language Models (LLMs) and their specialized variants, particularly Code LLMs, have recently delivered impressive performance. However, previous Code LLMs are typically fine-tuned on single-source data with limited quality and diversity, which may insufficiently elicit the potential of pre-trained Code LLMs. In this paper, we present AlchemistCoder, a series of Code LLMs with enhanced code generation and generalization capabilities fine-tuned on multi-source data. To achieve this, we pioneer to unveil inherent conflicts among the various styles and qualities in multi-source code corpora and introduce data-specific prompts with hindsight relabeling, termed AlchemistPrompts, to harmonize different data sources and instruction-response pairs. Additionally, we propose incorporating the data construction process into the fine-tuning data as code comprehension tasks, including instruction evolution, data filtering, and code review. Extensive experiments demonstrate that AlchemistCoder holds a clear lead among all models of the same size (6.7B/7B) and rivals or even surpasses larger models (15B/33B/70B), showcasing the efficacy of our method in refining instruction-following capabilities and advancing the boundaries of code intelligence.

  • AlchemistPrompts: Designed as data-specific prompts for harmonizing inherent conflicts in multi-source data and mitigating the instruction/response misalignment at a fined-grained level.
  • Code Comprehenstion Tasks: Sourced from the process of data construction, consisting of instruction evolution, data filtering, and code review.
  • Harmonized Multi-source Data: Instruction tuned on 200M tokens, including 6 types of high-quality data.
  • Superior Model Performance: Surpassing all the open-source models of the same size (6.7/7B), and rivaling or even beating larger models (15B/33B/70B/ChatGPT) on 6 code benchmarks.
  • Advanced generic capabilities: Demonstrated by the significant improvements on MMLU, BBH, and GSM8K.

๐Ÿš€ Quick Start#

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("internlm/AlchemistCoder-L-7B", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("internlm/AlchemistCoder-L-7B", trust_remote_code=True, torch_dtype=torch.bfloat16).cuda()
model = model.eval()

input_text = "Implement the Dijkstra algorithm in Python"
inputs = tokenizer(input_text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_length=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

๐Ÿงช Evaluation and Fine-tune#

Please refer to AlchemistCoder and InternLM.

๐Ÿ˜ƒ Acknowledgments#

AlchemistCoder is built with InternLM and OpenCompass. Thanks for their awesome work!

๐Ÿ“ง Contact#

If you have any questions, please create an issue on this repository or contact us at:

  • sugger@tongji.edu.cn
  • zhangwenwei@pjlab.org.cn

๐ŸŒŸ Citation#

If you find our work useful, please consider citing:

@misc{song2024alchemistcoder,
      title={AlchemistCoder: Harmonizing and Eliciting Code Capability by Hindsight Tuning on Multi-source Data}, 
      author={Zifan Song and Yudong Wang and Wenwei Zhang and Kuikun Liu and Chengqi Lyu and Demin Song and Qipeng Guo and Hang Yan and Dahua Lin and Kai Chen and Cairong Zhao},
      year={2024},
      eprint={2405.19265},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Files

11 files ยท 13.5 GBWeights 13.5 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 11 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md4.05 KB7e7f58f7f6c73005a93f1b402eb5069d00c4cc9bcdea00f61da5e090137acfb8
config.json660 B4d4d6da9333cd7d07cbc4d07c91850642507fa337f6975d103e02d575bc14eee
generation_config.json116 Bf490e6a4fddf2adc4e788a4903181cc4a7bf6496835fbf288de4935296f9a73d
model-00001-of-00002.safetensors9.98 GB773d5587bfbdfee2ad4a7b3a8a11c8c98d2e9422d498ef9cd7297e26c6445e55
model-00002-of-00002.safetensors3.50 GBeca273737f09d28cf9d1c6a9a47c852e9b665c0e606b7287fac5f67fd9e3a7f5
model.safetensors.index.json23.9 KB610194b49eade5f9d8ff8702c373fdd515269847f6d36425355ed1c2fd31f348
special_tokens_map.json414 B6fa06efa2785e450051989a6f8fb4416b10149ded485ddd3f127a40734f5cfd0
tokenizer.json1.84 MBbcd04f0eadf90287bd26e1a183ac487d8a141b09b06aecb7725bbdd343640f2e
tokenizer.model500 KB9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
tokenizer_config.json933 Bb53362b90e5de284079c6b8b57e9fab1193040b4a17fa703bd3149550794f48d
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
8e82ac785e pinned now2026-11-15 04:15 UTC11 files ยท 13.5 GB

Use it

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

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
7e7f58f7f6c73005a93f1b402eb5069d00c4cc9bcdea00f61da5e090137acfb8
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: internlm <huggingface.co/internlm>Newsgroups: alt.freeweights.textSubject: AlchemistCoder-L-7BDate: 2026-11-15Commit: 8e82ac7Signed: 2DC28CC7B26A283B ✓
Upstream
internlm/AlchemistCoder-L-7B
Pinned commit
8e82ac785e26778281a529ae975b3f387a0d30fa
Manifest
AlchemistCoder-L-7B.json ยท .minisig
Manifest sha256
1174c8dd6e54a0dad94d5e918babdc4cf5d246037fb40b7967145df81acc74fe
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:15 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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

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

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download internlm/AlchemistCoder-L-7B
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. AlchemistCoder-L-7B.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of AlchemistCoder-L-7B. 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