厲害在哪(據實、不灌水)
- 訓練料每一筆都經「執行驗證」:解法在沙箱跑過隱藏測試、通過才收(rejection sampling)——不是網路爬來的程式碼,每一筆都證明會動。這是多數蒸餾模型給不出的資料品質保證。
- 保留通用coding實力:HumanEval pass@1 87.2%(第三方題庫、greedy、164題)——對21B總參 / 3.6B活躍的開源模型屬頂規檔次。
- 整個家族的「碼力底層」:
TAIDE-zhTW(繁中) 與 Uncensored(無審查) 兩顆都疊在這顆之上。
- 輕量好部署:MXFP4、約14GB,單張中階GPU(甚至CPU)即可本地、可控、離線部署,Apache-2.0商用友善。
定位是「可控、可驗證、自架的實用coder」,不是去刷贏最頂尖的封閉模型;價值在資料每筆可執行、行為可控、貼合自家技術堆疊。
做法
- 資料:程式碼指令資料每筆解法都先在沙箱跑過隱藏測試、通過才收。
- 方法:teacher蒸餾 + 執行驗證閘門(rejection sampling)→ LoRA SFT。
from transformers import AutoModelForCausalLM, AutoTokenizertok = AutoTokenizer.from_pretrained("xCloudinfo/gpt-oss-20b-Code-xCloud")model = AutoModelForCausalLM.from_pretrained("xCloudinfo/gpt-oss-20b-Code-xCloud", dtype="auto", device_map="auto")msgs = [{"role": "user", "content": "用 Python 寫一個 LRU cache,附簡短說明。"}]ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)print(tok.decode(model.generate(ids, max_new_tokens=512)[0][ids.shape[1]:], skip_special_tokens=False))
reasoning模型:請給足 max_new_tokens。GGUF版見 gpt-oss-20b-Code-xCloud-GGUF。
授權與來源聲明
由 云碩科技xCloudinfo於自有AI算力資源池製作;資料留在本地、流程可重現。
關於云碩科技
云碩科技(xCloudinfo Corp. Limited)專注於地端私有化人工智慧解決方案。xVITA是云碩自研模型的品牌名稱。
其他模型請見 https://hf.co/xCloudinfo。
gpt-oss-20b-Code-xCloud — English
xCloudinfo (云碩科技) · Series: Code
A code-capability-strengthened reasoning model built on openai/gpt-oss-20b (21B total params / 3.6B active / MoE / MXFP4 / harmony reasoning format). It is LoRA fine-tuned on execution-verified distilled code-instruction data (LoRA acts on attention; the MoE experts stay in native MXFP4), preserving gpt-oss's native reasoning capability.
Function: writing code — understanding requirements, generating runnable Python/code solutions, and preserving step-by-step reasoning.
Where it is strong (faithful, no padding)
- Every training sample is "execution-verified": the solution ran against hidden tests in a sandbox and was kept only if it passed (rejection sampling) — it is not code scraped from the web; every sample is proven to run. This is a data-quality guarantee that most distilled models cannot offer.
- Preserves general coding strength: HumanEval pass@1 87.2% (third-party test bank, greedy, 164 problems) — top-tier for an open-source model with 21B total / 3.6B active params.
- The whole family's "coding foundation": both
TAIDE-zhTW (Traditional Chinese) and Uncensored are stacked on top of this one.
- Lightweight and easy to deploy: MXFP4, about 14GB, deployable locally and controllably (even on CPU) on a single mid-range GPU, Apache-2.0, commercial-friendly.
The positioning is a practical coder that is controllable, verifiable, and self-hosted, not something meant to beat frontier closed models; its value is that every data sample is runnable, its behavior is controllable, and it fits your own tech stack.
How it is done
- Data: for code-instruction data, every solution was first run against hidden tests in a sandbox and kept only if it passed.
- Method: teacher distillation + execution-verification gate (rejection sampling) → LoRA SFT.
from transformers import AutoModelForCausalLM, AutoTokenizertok = AutoTokenizer.from_pretrained("xCloudinfo/gpt-oss-20b-Code-xCloud")model = AutoModelForCausalLM.from_pretrained("xCloudinfo/gpt-oss-20b-Code-xCloud", dtype="auto", device_map="auto")msgs = [{"role": "user", "content": "用 Python 寫一個 LRU cache,附簡短說明。"}]ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)print(tok.decode(model.generate(ids, max_new_tokens=512)[0][ids.shape[1]:], skip_special_tokens=False))
Reasoning model: please give it enough max_new_tokens. For the GGUF version see gpt-oss-20b-Code-xCloud-GGUF.
License and source statement
Made by xCloudinfo (云碩科技) on its own AI compute pool; data stays local, the process is reproducible.
About xCloudinfo
xCloudinfo Corp. Limited (云碩科技) builds on-premises, private AI solutions. xVITA is xCloudinfo's in-house model brand.
More models: https://hf.co/xCloudinfo