Text Generation
Transformers
Safetensors
gated_deltanet
convergent-evolution
fourier-features
number-embeddings
Instructions to use deqing/convergent-gdn-300M-muon-original with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use deqing/convergent-gdn-300M-muon-original with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="deqing/convergent-gdn-300M-muon-original")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("deqing/convergent-gdn-300M-muon-original", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use deqing/convergent-gdn-300M-muon-original with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "deqing/convergent-gdn-300M-muon-original" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deqing/convergent-gdn-300M-muon-original", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/deqing/convergent-gdn-300M-muon-original
- SGLang
How to use deqing/convergent-gdn-300M-muon-original 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 "deqing/convergent-gdn-300M-muon-original" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deqing/convergent-gdn-300M-muon-original", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "deqing/convergent-gdn-300M-muon-original" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "deqing/convergent-gdn-300M-muon-original", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use deqing/convergent-gdn-300M-muon-original with Docker Model Runner:
docker model run hf.co/deqing/convergent-gdn-300M-muon-original
Add model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- convergent-evolution
|
| 5 |
+
- fourier-features
|
| 6 |
+
- number-embeddings
|
| 7 |
+
license: mit
|
| 8 |
+
datasets:
|
| 9 |
+
- HuggingFaceFW/fineweb-edu
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# convergent-gdn-300M-muon-original
|
| 13 |
+
|
| 14 |
+
A 300M-parameter language model trained from scratch on **[FineWeb-Edu](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu) sample-10BT (~9.4B tokens)** as part of the *Convergent Evolution* project, which investigates how Fourier features emerge in LLM number embeddings.
|
| 15 |
+
|
| 16 |
+
## Model details
|
| 17 |
+
|
| 18 |
+
| | |
|
| 19 |
+
|---|---|
|
| 20 |
+
| **Architecture** | GDN (Gated Diagonal Network) |
|
| 21 |
+
| **Parameters** | ~300M |
|
| 22 |
+
| **Optimizer** | Muon (for 2D weights) + AdamW (for embeddings/bias/norm) |
|
| 23 |
+
| **Data perturbation** | standard (unperturbed) text |
|
| 24 |
+
| **Training data** | [FineWeb-Edu](https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu) sample-10BT (~9.4B tokens) |
|
| 25 |
+
| **Context length** | 1024 |
|
| 26 |
+
| **Tokenizer** | Llama 3 (128K vocab) |
|
| 27 |
+
| **Batch size** | 512 sequences |
|
| 28 |
+
|
| 29 |
+
## Usage
|
| 30 |
+
|
| 31 |
+
```python
|
| 32 |
+
from transformers import AutoModelForCausalLM
|
| 33 |
+
|
| 34 |
+
# Load final checkpoint
|
| 35 |
+
model = AutoModelForCausalLM.from_pretrained("deqing/convergent-gdn-300M-muon-original")
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
## Training dynamics
|
| 39 |
+
|
| 40 |
+
Intermediate checkpoints are saved as branches: `tokens-200M`, `tokens-400M`, ...
|
| 41 |
+
|
| 42 |
+
```python
|
| 43 |
+
# Load intermediate checkpoint (e.g., at 1B tokens)
|
| 44 |
+
model = AutoModelForCausalLM.from_pretrained("deqing/convergent-gdn-300M-muon-original", revision="tokens-1B")
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
## Citation
|
| 48 |
+
|
| 49 |
+
Paper forthcoming.
|