Feature Extraction
Transformers
Safetensors
hetero_moe_projspace
mixture-of-experts
heterogeneous
dimension-projection-space
ffn-fusion
custom_code
Run this model with HF Jobs
Run redmingwei/HeteroMoEProjSpace-v2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/redmingwei/HeteroMoEProjSpace-v2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/redmingwei/HeteroMoEProjSpace-v2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use redmingwei/HeteroMoEProjSpace-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use redmingwei/HeteroMoEProjSpace-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="redmingwei/HeteroMoEProjSpace-v2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("redmingwei/HeteroMoEProjSpace-v2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
更新:指向 v62.3,说明 v62.1/v62.2 槽门控结论作废的原因
Browse files1234567891011121314# v62.1 — 已被 v62.2 取代本目录原本存放 v62.1 的 checkpoint 与训练报告。现已移除,原因:v62.1 的 `proj_space.router` 虽已接入计算,但仍在**槽**上做 top-k=2,实测每 token 最大权重均值 0.9933、槽门控熵只有 **0.0209**(上界 1.0)——等价于「四个槽里只剩一个在工作」,与「空间 = Σ 子空间」这个核心主张矛盾。v62.2 改为全槽软门控 + 熵正则,槽熵恢复到 **0.6928**,四槽激活率 100%。另外,v62.0 / v62.1 报告里的「专家负载均衡 0.8774」统计的是那个**从未参与计算**的 router,不代表任何真实行为,同样作废。当前版本:**[`../v62.2/`](../v62.2/)**12345678910111213141516171819202122# v62 / v62.1 / v62.2 — 均已被 v62.3 取代这几个版本的 checkpoint 与报告已移除,原因分两层:**一、v62.1 / v62.2 的槽门控结论无效。**它们的 `proj_space.router` 是 lazy 创建的(`__init__` 里 `s.router=None`,首次 forward 才建),后果三连:① `load_state_dict` 时 `proj_space.router.weight` 被判为 unexpected,权重根本加载不上;② `trainable` / optimizer 在 router 存在之前就取好,**router 从未被优化**;③ 熵正则的梯度流向 router,却不在 optimizer 里,被丢弃。⇒ 槽门控完全由一个**随机初始化**的 router 决定。「四槽激活率 100%」「槽熵 0.6928」都不成立。**专家选择不受影响** —— `fusion.W_router` 是 `nn.Parameter`,从 `__init__` 起就在 `trainable` 里。**二、v62.2 的 checkpoint 被 v62.3 的训练覆盖**(训练脚本里上传路径写死在`checkpoints/v62.2/`)。内容已归位到 `checkpoints/v62.3/`。## 当前版本**[`../v62.3/`](../v62.3/)** —— router 改为 eager 创建,权重能加载、也进 optimizer。
checkpoints/v62/README.md+17-9