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
100k
#1
by theCoderWithHat - opened
- README.md +3 -3
- model.safetensors +1 -1
- training_state.pt +2 -2
README.md
CHANGED
|
@@ -9,13 +9,13 @@ pipeline_tag: text-generation
|
|
| 9 |
|
| 10 |
# Qwen3 mHC
|
| 11 |
|
| 12 |
-
This checkpoint is a Manifold-Constrained Hyper-Connections (mHC) V2 variant of Qwen/Qwen3-0.6B, trained for
|
| 13 |
|
| 14 |
## Model Description
|
| 15 |
|
| 16 |
- **Base model:** Qwen/Qwen3-0.6B
|
| 17 |
- **Architecture:** Qwen3 with mHC V2 hyper-connections (stream-mixing)
|
| 18 |
-
- **Checkpoint:**
|
| 19 |
- **Language(s):** Multilingual (see data notes)
|
| 20 |
- **License:** Apache-2.0 (inherits base model license)
|
| 21 |
|
|
@@ -37,7 +37,7 @@ This checkpoint was trained on multilingual pretokenized datasets, primarily San
|
|
| 37 |
## Training Procedure
|
| 38 |
|
| 39 |
- Converted from a Qwen3 base checkpoint into an mHC V2 model.
|
| 40 |
-
- Trained for
|
| 41 |
- Uses Sinkhorn-based projection for residual mixing stability.
|
| 42 |
|
| 43 |
## Evaluation
|
|
|
|
| 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 |
|
|
|
|
| 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
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1192998544
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aad3344026d91d0467a056746fa3bb2d3f085778ae0715a42731cb5247134d3e
|
| 3 |
size 1192998544
|
training_state.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2d23078ace67f6ac34dd3d8b7ea4846d4c0347d324e30a73ce2ab64e09d09dc
|
| 3 |
+
size 2386717700
|