Instructions to use theCoderWithHat/mhc-qwen3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use theCoderWithHat/mhc-qwen3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="theCoderWithHat/mhc-qwen3") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import Qwen3MHCForCausalLMV2 model = Qwen3MHCForCausalLMV2.from_pretrained("theCoderWithHat/mhc-qwen3", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use theCoderWithHat/mhc-qwen3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "theCoderWithHat/mhc-qwen3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "theCoderWithHat/mhc-qwen3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/theCoderWithHat/mhc-qwen3
- SGLang
How to use theCoderWithHat/mhc-qwen3 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "theCoderWithHat/mhc-qwen3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "theCoderWithHat/mhc-qwen3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "theCoderWithHat/mhc-qwen3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "theCoderWithHat/mhc-qwen3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use theCoderWithHat/mhc-qwen3 with Docker Model Runner:
docker model run hf.co/theCoderWithHat/mhc-qwen3
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- multilingual
|
| 4 |
+
library_name: transformers
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
base_model: Qwen/Qwen3-0.6B
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Qwen3 mHC
|
| 11 |
+
|
| 12 |
+
This checkpoint is a Manifold-Constrained Hyper-Connections (mHC) V2 variant of Qwen/Qwen3-0.6B, trained for 30k steps in a parity-mixed setup. It is intended for research on residual stream mixing and hyper-connection behavior.
|
| 13 |
+
|
| 14 |
+
## Model Description
|
| 15 |
+
|
| 16 |
+
- **Base model:** Qwen/Qwen3-0.6B
|
| 17 |
+
- **Architecture:** Qwen3 with mHC V2 hyper-connections (stream-mixing)
|
| 18 |
+
- **Checkpoint:** 30,000 steps
|
| 19 |
+
- **Language(s):** Multilingual (see data notes)
|
| 20 |
+
- **License:** Apache-2.0 (inherits base model license)
|
| 21 |
+
|
| 22 |
+
## Intended Use
|
| 23 |
+
|
| 24 |
+
- Research on mHC V2 hyper-connections and residual stream mixing
|
| 25 |
+
- Fine-tuning or continued training experiments
|
| 26 |
+
- Analysis of stream specialization behavior
|
| 27 |
+
|
| 28 |
+
## Out-of-Scope Use
|
| 29 |
+
|
| 30 |
+
- Safety-critical or medical decision-making systems
|
| 31 |
+
- High-stakes automated decision-making without human oversight
|
| 32 |
+
|
| 33 |
+
## Training Data
|
| 34 |
+
|
| 35 |
+
This checkpoint was trained on multilingual pretokenized datasets, primarily Sangraha shards. The data is prepacked into train/validation splits or shard layouts. Exact dataset composition and filtering are not fully documented here.
|
| 36 |
+
|
| 37 |
+
## Training Procedure
|
| 38 |
+
|
| 39 |
+
- Converted from a Qwen3 base checkpoint into an mHC V2 model.
|
| 40 |
+
- Trained for 30k steps in a parity-mixed run.
|
| 41 |
+
- Uses Sinkhorn-based projection for residual mixing stability.
|
| 42 |
+
|
| 43 |
+
## Evaluation
|
| 44 |
+
|
| 45 |
+
No formal benchmarks are bundled with this checkpoint. If you evaluate this model, please report the setup, prompts, decoding parameters, and comparison baselines.
|