alt.freeweights.minicpm / UltraData-Code-L2-Classifier
From: openbmb <huggingface.co/openbmb>Newsgroups: alt.freeweights.minicpmSubject:

UltraData-Code-L2-Classifier

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

Model. Mlx weights, 94.8 MB in all. Published by openbmb under Apache-2.0.

minicpm94.8MBUltraData-Code-L2-Classifiermlxpermissive
FactsParamsnot statedSize94.8 MBFormatsmlxTasknot taggedLicenseApache-2.0From sourcepermissive
$ fw get openbmb/UltraData-Code-L2-Classifier
# manifest sha256 7a80e167797a… · 94.8 MB · 69 files
$ fw verify ./UltraData-Code-L2-Classifier openbmb/UltraData-Code-L2-Classifier
From sourceHosted (signed)openbmb/UltraData-Code-L2-ClassifierLast check: 2026-11-15 03:50 UTC

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

Works with

Runs with

Ranked by fit to this model (mlx), then by GitHub stars.

Overview

Size
94.8 MB
Weights
see files
Parameters
not stated
Formats
mlx
Task
not tagged
License
Apache-2.0 (permissive)
Files
69, each with a sha256
Publisher
openbmb
Added
2026-11-15
Section
alt.freeweights.minicpm
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 03:50 UTCpassed

Model card

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

UltraData-Code-L2-Classifier#

πŸ“¦ UltraData Collection | 🌐 UltraData | πŸ€— MiniCPM5 Series | πŸ“– Tech Report | πŸ€— UltraData-Code Dataset

English | δΈ­ζ–‡

πŸ“š Introduction#

UltraData-Code-L2-Classifier is a suite of language-specific, file-level scorers designed for the 11 programming languages represented in UltraData-Code-L1.

For each language, we train and apply a dedicated L2 scorer to the corresponding files in UltraData-Code-L1. The selected files form UltraData-Code-L2, a corpus designed to concentrate interpretable computation and problem-solving logic. The resulting L2 corpus contains approximately 400B tokens and retains approximately 12.23% of L1 files overall.

πŸ’‘ Highlights#

Abstract: Code generation has become a core capability of large language models (LLMs), and code data is central to the pre-training process that develops it. As obtaining public code of sufficient quality becomes more difficult, further progress cannot rely on corpus expansion alone. Tiered data management instead applies increasingly targeted processing to smaller data pools, producing data states suited to different training objectives. Following this perspective, we present UltraData-Code as four connected data states spanning repository archival at L0, standardized natural code at L1, algorithmic selection at L2, and task-oriented synthesis at L3. L0 preserves repository data and provenance for reprocessing, while L1 applies scalable filtering, normalization, and near-deduplication for broad pre-training. L2 selects high-quality algorithmically relevant files using language-adaptive relevance signals and quality constraints, yielding approximately 400B tokens of UltraData-Code-L2 across 11 programming languages for focused continual pre-training. L3 converts selected implementations into structured programming exercises, yielding approximately 150B tokens of UltraData-Code-L3 across the same 11 languages for task-oriented mid-training or supervised fine-tuning (SFT). Under controlled 10B-token continual pre-training of a 1B model, L2 improves pass@1 over L1 by 7.80 percentage points (pp) on EvalPlus and 5.13pp on MultiPL-E. Replacing half of the L2 training tokens with L3 yields a further gain of 8.42pp and 8.07pp on the two benchmarks, respectively. Both gains increase when the training budget scales to 100B tokens. We have released our datasets and classifiers to support further research on LLMs.

  • A connected code data construction pipeline. UltraData-Code links repository archival and standardized natural code with selection and structured synthesis, yielding approximately 400B tokens at L2 and 150B tokens at L3 across 11 programming languages. The datasets have been released to facilitate the development of LLMs.
  • Fine-grained curation of algorithmically relevant code. We develop a language-adaptive selection framework that combines file role supervision with language-specific heuristic cues to learn algorithmic relevance. The framework reuses precomputed semantic embeddings across role, relevance, and quality models, and applies role and quality constraints during selection.
  • Implementation-grounded, task-oriented synthesis. We introduce a structured synthesis protocol that converts each algorithmically relevant implementation selected by L2 into a programming exercise, jointly generating a standalone task, analysis, solution, and test candidates from the same source implementation. This transformation preserves the source code's computational intent while adding explicit task and solution supervision for code generation.

Image: UltraData-Code L0-L3 construction pipeline

πŸ”Ž L2 Selection Framework#

The L2 framework is applied independently to each of the 11 languages in UltraData-Code-L1:

  1. Encode files. Each file is represented with a 1024-dimensional embedding from Qwen3-Embedding-0.6B.
  2. Predict file roles. The role classifier assigns one of ALGO, WEB, TOOL, DATA, TEST, CONFIG, or EXCLUDE.
  3. Construct dual-cue supervision. ALGO role labels are combined with language-specific heuristic evidence to identify algorithmically relevant files beyond the ALGO role alone.
  4. Score relevance and quality. The relevance model outputs algo_rel_score; the quality model outputs quality_score.
  5. Calibrate and select. A language-specific relevance threshold is calibrated on held-out data. A file is retained when it passes the relevance and quality thresholds and is not predicted as EXCLUDE.

Image: UltraData-Code L2 selection framework

πŸ“ˆ Evaluation Results#

The 10B-token comparisons use the same 1B foundation model, training settings, decontamination, and evaluation protocol.

Python results: Algorithmic selection yields the strongest natural code result. UltraData-Code-L2-py improves the average EvalPlus pass@1 by 17.91 points over UltraData-Code-L1-py and by 8.46 points over Stack-Edu-py.

Image: Python training dynamics

Image: Python main results table

Multilingual results: L2 selection improves over L1 baselines. UltraData-Code-L2 exceeds UltraData-Code-L1 by 7.80 points on EvalPlus and 5.13 points on MultiPL-E, and exceeds Stack-Edu by 4.37 and 3.05 points, respectively.

Image: Multilingual training dynamics

Image: Multilingual main results table

πŸš€ Usage of UltraData-Code-L2 Classifier#

Install the runtime dependencies:

pip install numpy torch pyarrow
Score embeddings in Python#
import sys
sys.path.insert(0, "scripts")
from scorers import LanguageScorers

scorers = LanguageScorers.load("classifiers/cpp")

# float32 [N, 1024]; paths are repository-relative and aligned with embeddings
out = scorers.score(embeddings, paths)

Use the matching language directory for each input language. Real repository-relative paths are required by the relevance model.

Score Parquet files#

scripts/score_parquet.py accepts one Parquet file or recursively walks a directory. Inputs must contain an embedding column and either relative_path or meta.file_path.

SCORERS=classifiers/cpp
DATA_PATH=data/input
SAVE_PATH=data/output

python scripts/score_parquet.py \
  --scorers ${SCORERS} \
  --input ${DATA_PATH} \
  --output-root ${SAVE_PATH} \
  --batch-size 1024 \
  --device cpu \
  --apply-policy

The output mirrors the input directory structure and preserves all existing columns. Use --describe to inspect a scorer set, --limit N to process at most N Parquet files, or --algo-rel-min, --quality-min, and --exclude-categories to override policy values.

Output fields#

The classifier appends the following results to each input file:

category: {Predicted file role}
cls_confidence: {File role confidence}
algo_rel_score: {Algorithmic-relevance score}
quality_score: {Code quality score}
selected: {Whether the file passes the selection policy}
  • category is one of ALGO, WEB, TOOL, DATA, TEST, CONFIG, or EXCLUDE.
  • cls_confidence and algo_rel_score range from 0 to 1; quality_score ranges from 0 to 10.
  • selected is added only when --apply-policy is enabled. It marks rows that pass the relevance threshold, the EXCLUDE veto, and the quality threshold; rows are not deleted.
Notes#
  • Inputs must use 1024-dimensional embeddings produced by Qwen3-Embedding-0.6B.
  • The relevance scorer also uses the repository-relative path. Use real paths aligned with the embeddings.
  • config.json provides defaults. Command-line options can override these defaults.
  • The scoring script is single-process. For corpus-scale inference, schedule multiple shards or subdirectories externally.

❀️ Acknowledgements#

This release builds on Qwen3-Embedding-0.6B, PyTorch, PyArrow. Thanks for their awesome work! Open-source contributions make UltraData-Code possible! πŸ™Œ

πŸ’³ License#

This project is released under the Apache 2.0 license.

πŸ“– Citation#

If you find UltraData-Code or this classifier useful, please consider citing:

@article{tu2026ultradata,
  title={{UltraData-Code}: From Raw Repositories to Algorithmically Dense and Task-Oriented Code Data},
  author={Tu, Chengying and Zhao, Hengyu and Xue, Shuaikang and Qu, Zhongming and Zhou, Jihao and Lin, Xinle and Guo, Junshao and Fu, Zixuan and Ma, Qiang and Zhou, Jie and others},
  journal={arXiv preprint arXiv:2610.23960},
  year={2026}
}

Files

69 files Β· 94.8 MB Sizes and sha256 from the signed manifest.
Show all 69 files with their sha256
FileSizesha256
.gitattributes1.87 KBa239c95e3ee88092cbc74bf77025ef203e0bd15c383b1134831073218cdd2c9a
README.md10.1 KB8f3eccc3d14315616aaf654142a2c7d9ddcd1cb14067f142848a0275fcdbcba6
README_ZH.md9.60 KB2065282135a637cfe572cc42f467ebfad68373a568fd91d5c379a5aa8d8bb2ce
assets/multilingual-training-dynamics.png104 KB66d7b047effac3b6e182140c9a98fa8b81f3f1f654b1c02f2f13be8246c65c20
assets/multilingual_results.png271 KB02ef159e711036766757c744bec6e2306bd50421f1d98d9490ececf2c224f1af
assets/python-training-dynamics.png178 KB5a4a194b2bfa9d487a4b539ac28bdfc814a0a45140f9b718648fd01417053c45
assets/python_results.png263 KB2b8d36b08233a0c651db0c62e1d41bfd1f6f6dccf3a2fff2d35bf1e97a4fbc17
assets/ultradata-code-l0-l3-overview.png3.08 MBef576cb188e7488ba221d2811341e30db5cfb66815b3177b559ce544aa8fb2ab
assets/ultradata-code-l2.png815 KBb2101a2e56f095ded9a3f1fd5b4f26949bf7e64560cb3fdacbf1776642c57736
classifiers/.DS_Store8.20 KBa6fc99b05e3001bd9d71f515ff2c84fbc4904c9c60b22341a7cbe4bcde59b3ae
classifiers/cpp/A_relevance.bin692 KB69d9fac735e3bcd6a5ac229971c10bba983d4ff054d8fcd555afaa8f820e4a79
classifiers/cpp/C_file_role.bin3.96 MB26815d880b5880d63b1f70f55db0eae8b5ba87ed482f324f8967884e5c1e2f60
classifiers/cpp/C_file_role.json145 B7395d24496405898b30f5fcf16d90c0653540d84a006ac856d39211cd479ee83
classifiers/cpp/Q_quality.bin2.65 MBfd7b2072a5ec493cc7f87a7f214bdb0ab22f4db8872680ff9a8ce83d9f4afe23
classifiers/cpp/Q_scaler.npz8.70 KBb55b8b39a3d254ce56e595f1c1f46d5f40f6f4e02c447934bb2620bb66b74e59
classifiers/csharp/A_relevance.bin692 KB8907abd9a500359a505984332517562b10bb99c486419ac46d38a8247485cd60
classifiers/csharp/C_file_role.bin5.27 MB55e3a2c2f9066bb3c1027140a02af6f483a9f467f8d91b9fdd08ee8f9b9b2fb6
classifiers/csharp/C_file_role.json145 B7395d24496405898b30f5fcf16d90c0653540d84a006ac856d39211cd479ee83
classifiers/csharp/Q_quality.bin2.65 MBdf3417dd4a7a05acf3ce330e1bb149dc28c7e397a72ac026002b344789064d12
classifiers/csharp/Q_scaler.npz8.70 KBab8d6cb4705304b14622df8fdf2aa770814305c6077408816c5afd0b5087139b
classifiers/go/A_relevance.bin692 KB7441a4dcbe6a75232053d30aa8987fe366cc55e1357e69b5cdfe51a1dade6e8c
classifiers/go/C_file_role.bin3.96 MBf7993ac50b52a0fb2320fa1cf09571457d75e8d6c50379013dfa42e318da5684
classifiers/go/C_file_role.json145 B7395d24496405898b30f5fcf16d90c0653540d84a006ac856d39211cd479ee83
classifiers/go/Q_quality.bin2.65 MBab58f06e5e5099590dd0fcda2e902fbe3ed28e0383047a74b4fa84b4267e648e
classifiers/go/Q_scaler.npz8.70 KB3204acf88ec63a714728f12ebe60d5f05463832c21bc1717ed9c9716ae5bd0cf
classifiers/java/A_relevance.bin1.45 MBd3bb8f42061135312f693d252302bd7f6c9107f2a753d6e6c9cf885ecfbe60c3
classifiers/java/C_file_role.bin3.96 MB4699cf2c7b7db875d4edb8ba5147a118e8d10323f5512c92cf69e3045fc3fb07
classifiers/java/C_file_role.json145 B7395d24496405898b30f5fcf16d90c0653540d84a006ac856d39211cd479ee83
classifiers/java/Q_quality.bin2.65 MB140ba3641b5db61b6e84d28e3d74237839f523e644d50e1966d6f1d09337a3b6
classifiers/java/Q_scaler.npz8.70 KB102ffd81a344ed33919c3c99996c48c9e2136e503ed3e406d47abc83c8ac1f44
classifiers/javascript/A_relevance.bin692 KBfb261d0ba07f624d0476ce5d27b315c1d71cdcf8c524797554885ff302af0ad5
classifiers/javascript/C_file_role.bin5.27 MB424a1934a321c683dedbd6613dd6021a0500a8248444ddfce135eb9d8bde6334
classifiers/javascript/C_file_role.json145 B7395d24496405898b30f5fcf16d90c0653540d84a006ac856d39211cd479ee83
classifiers/javascript/Q_quality.bin4.36 MB96c06d31398978c87a36cd76b14fbecf7d2a503158b8d34c1f0e511f6f4c8e0d
classifiers/javascript/Q_scaler.npz8.70 KBedb08e6d9131d5f137a548f54297745c9c6c579c0d5e78726e3ce3b9bf9c6693
classifiers/php/A_relevance.bin692 KB47a91f7423fd0ca3c3691bc83c32c790d14c99323335c81e95ae7ad7c60e3024
classifiers/php/C_file_role.bin5.27 MB067f21a3c1685407ef9c5c5bcfd08993c8fb1d34cf0f40a00af75eae46343821
classifiers/php/C_file_role.json145 B7395d24496405898b30f5fcf16d90c0653540d84a006ac856d39211cd479ee83
classifiers/php/Q_quality.bin2.65 MBa14861f0b57adfc5746303dc7d6f7690c58b0a8f364ae744ff27204400c81d50
classifiers/php/Q_scaler.npz8.70 KBfc285ab85d610fc7bee5bf48f6fefe53af94f92aaddebcaaeb2c1b36c4022d1f
classifiers/python/A_relevance.bin692 KB215475344c065b4ec34bc92bced8b39b67c84b826bc95e95c407dc00a05cfab5
classifiers/python/C_file_role.bin5.27 MB1b681afb0528c975dba8cef9edb3e8a21db943debce42717fd4a35493b36284d
classifiers/python/C_file_role.json145 B7395d24496405898b30f5fcf16d90c0653540d84a006ac856d39211cd479ee83
classifiers/python/Q_quality.bin4.36 MBf10a4bb1f77644e43478e6b89cdf392b77a6c00d471de0bc80746ddbabae9165
classifiers/python/Q_scaler.npz8.70 KBa7afd8c690c96094a1f689c764345ec7ccb99d3b7d52d0fc2fce0f28f4ea273a
classifiers/r/A_relevance.bin692 KB7f72114badc2838ebd565f0fe3cb07d6ad5e4a4df6afa7f8d9f8e9aa023e5ccf
classifiers/r/C_file_role.bin2.37 MB90fbac1d554770f77d0c939e9fa17d4508bef6334e9a5dce4e1280fcd40a7dea
classifiers/r/C_file_role.json145 B7395d24496405898b30f5fcf16d90c0653540d84a006ac856d39211cd479ee83
classifiers/r/Q_quality.bin2.65 MB2504cce34461f1bc2afd82a75c860d8aea49c196663ebaab706ae39367407cf1
classifiers/r/Q_scaler.npz8.70 KB4bf48f51a045acdffd1363d5f1df2b05d8b7a8ae79e84644e6dc57f69a65a0c6
classifiers/ruby/A_relevance.bin692 KB4a64077c5c4e611c6a131a34d9cec8f136eb2e5806176a70d5d47c9ada3dbdbe
classifiers/ruby/C_file_role.bin2.37 MB45dbadb3197a46da22e941df1d5b5964dfd4ed17f8ec4db268c4ded89a1b810b
classifiers/ruby/C_file_role.json145 B7395d24496405898b30f5fcf16d90c0653540d84a006ac856d39211cd479ee83
classifiers/ruby/Q_quality.bin4.36 MB14fedf39c3ea5ec315a74c1238f0ecf1f0b7503bb64e14c1ee28cb15102f2af4
classifiers/ruby/Q_scaler.npz8.70 KB27f4235353f970ab3a3eacdf6bd8664d54509dd8bcd1bfb77da3290af499bc2d
classifiers/rust/A_relevance.bin692 KBeddfd7d6b83c0641415d51e21f52dfc77a40cb2be55c72bf27cfe88e3b5df012
classifiers/rust/C_file_role.bin3.96 MB82a07f0e33075139285f23a60737570488cddb6ff32030e0392e323480eb7ab3
classifiers/rust/C_file_role.json145 B7395d24496405898b30f5fcf16d90c0653540d84a006ac856d39211cd479ee83
classifiers/rust/Q_quality.bin4.36 MB1cbbb287c15c6e15a20fa20875840a3722321d2160e4708dd61cc1ec27789400
classifiers/rust/Q_scaler.npz8.70 KB158b621587980d32fef17aaa264ce26ec5013f3e93621a3078e7f0ead6532a41
classifiers/shell/A_relevance.bin692 KB380ac6f65c1807bdb98c86269f5531aba2477d45c4d1071f0feff5ad5d20144c
classifiers/shell/C_file_role.bin3.96 MBafe48d99c1d277171ebfd0dae5d080bc4b711c6389d83de422642c61760ebea3
classifiers/shell/C_file_role.json145 B7395d24496405898b30f5fcf16d90c0653540d84a006ac856d39211cd479ee83
classifiers/shell/Q_quality.bin2.65 MBc2530296120c2359c79f2ca4b3bf215af0e036a7a452969d95bcbc9107a7aeaf
classifiers/shell/Q_scaler.npz8.70 KBc71896eb7b30bcf414272cf8172fcba1763dc33657d4f7b7a1c22462e4417ae8
config.json473 B1d83ee4d0b152b90aedbee1c81f055ec8dfc29af12167b6fa94ed826c4e4507e
scripts/path_features.py5.03 KBd4a1f98215df837412fcd03bd3cd33382a744189deb1df8604d9021149f9fa88
scripts/score_parquet.py9.18 KBe1506b157edcd27646bedb8a97af0ec8215c92f7edfe176b8b933eba2c9542c9
scripts/scorers.py13.3 KB202e2a8fc471a91ca94cb3a24b464967e80d3ee1bc2f34d11b77b070673aeb25
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
f7b94ab98a pinned now2026-11-15 03:50 UTC69 files Β· 94.8 MB

Use it

$ fw get openbmb/UltraData-Code-L2-Classifier
# manifest sha256 7a80e167797a… · 94.8 MB · 69 files
$ fw verify ./UltraData-Code-L2-Classifier openbmb/UltraData-Code-L2-Classifier
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/openbmb/UltraData-Code-L2-Classifier.json --dir ./UltraData-Code-L2-Classifier $ python3 fw.py verify ./UltraData-Code-L2-Classifier ./openbmb__UltraData-Code-L2-Classifier.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openbmb/UltraData-Code-L2-Classifier --revision f7b94ab98a647eac3136bf6e654c34b2aaa76f3a --local-dir ./UltraData-Code-L2-Classifier
MLXRun on Apple silicon with mlx-lm.
$ pip install mlx-lm $ HF_ENDPOINT=https://freeweights.allternit.com mlx_lm.generate --model openbmb/UltraData-Code-L2-Classifier --prompt "Hello"

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
8f3eccc3d14315616aaf654142a2c7d9ddcd1cb14067f142848a0275fcdbcba6
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: openbmb <huggingface.co/openbmb>Newsgroups: alt.freeweights.minicpmSubject: UltraData-Code-L2-ClassifierDate: 2026-11-15Commit: f7b94abSigned: 2DC28CC7B26A283B ✓
Upstream
openbmb/UltraData-Code-L2-Classifier
Pinned commit
f7b94ab98a647eac3136bf6e654c34b2aaa76f3a
Manifest
UltraData-Code-L2-Classifier.json Β· .minisig
Manifest sha256
7a80e167797a73d6b0829a83647d5227164ac7eb6c807594a9fabf829530c298
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:50 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/openbmb/UltraData-Code-L2-Classifier.json $ curl -O https://freeweights.allternit.com/manifests/openbmb/UltraData-Code-L2-Classifier.json.minisig $ minisign -Vm UltraData-Code-L2-Classifier.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

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openbmb/UltraData-Code-L2-Classifier
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. UltraData-Code-L2-Classifier.json. Provenance. Takedown history: none.
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Explore-GGUF
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Report
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Report-GGUF
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-0.5B-gguf
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-1B-gguf
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-3B-gguf