Instructions to use ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B") model = AutoModelForCausalLM.from_pretrained("ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B
- SGLang
How to use ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B 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 "ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B" \ --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": "ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B", "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 "ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B" \ --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": "ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B with Docker Model Runner:
docker model run hf.co/ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B
Fix typos in README.md
Browse files
README.md
CHANGED
|
@@ -42,15 +42,15 @@ This repository hosts the model weights for AHN. For installation, usage instruc
|
|
| 42 |
### Model Zoo
|
| 43 |
| base model | AHN module | #params | checkpoint (AHN only) |
|
| 44 |
|:---:|:---:| :---:|:---:|
|
| 45 |
-
| Qwen2.5-3B-Instruct | Mamba2 |
|
| 46 |
-
| Qwen2.5-3B-Instruct | DeltaNet |
|
| 47 |
-
| Qwen2.5-3B-Instruct | GatedDeltaNet |
|
| 48 |
-
| Qwen2.5-7B-Instruct | Mamba2 |
|
| 49 |
-
| Qwen2.5-7B-Instruct | DeltaNet |
|
| 50 |
-
| Qwen2.5-7B-Instruct | GatedDeltaNet |
|
| 51 |
-
| Qwen2.5-14B-Instruct | Mamba2 |
|
| 52 |
-
| Qwen2.5-14B-Instruct | DeltaNet |
|
| 53 |
-
| Qwen2.5-14B-Instruct | GatedDeltaNet |
|
| 54 |
|
| 55 |
### Evaluation
|
| 56 |
|
|
|
|
| 42 |
### Model Zoo
|
| 43 |
| base model | AHN module | #params | checkpoint (AHN only) |
|
| 44 |
|:---:|:---:| :---:|:---:|
|
| 45 |
+
| Qwen2.5-3B-Instruct | Mamba2 | 11.9M | [🤗model](https://huggingface.co/ByteDance-Seed/AHN-Mamba2-for-Qwen-2.5-Instruct-3B) |
|
| 46 |
+
| Qwen2.5-3B-Instruct | DeltaNet | 11.8M | [🤗model](https://huggingface.co/ByteDance-Seed/AHN-DN-for-Qwen-2.5-Instruct-3B) |
|
| 47 |
+
| Qwen2.5-3B-Instruct | GatedDeltaNet | 13.0M | [🤗model](https://huggingface.co/ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-3B) |
|
| 48 |
+
| Qwen2.5-7B-Instruct | Mamba2 | 18.6M | [🤗model](https://huggingface.co/ByteDance-Seed/AHN-Mamba2-for-Qwen-2.5-Instruct-7B) |
|
| 49 |
+
| Qwen2.5-7B-Instruct | DeltaNet | 18.5M | [🤗model](https://huggingface.co/ByteDance-Seed/AHN-DN-for-Qwen-2.5-Instruct-7B) |
|
| 50 |
+
| Qwen2.5-7B-Instruct | GatedDeltaNet | 21.3M | [🤗model](https://huggingface.co/ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-7B) |
|
| 51 |
+
| Qwen2.5-14B-Instruct | Mamba2 | 51.4M | [🤗model](https://huggingface.co/ByteDance-Seed/AHN-Mamba2-for-Qwen-2.5-Instruct-14B) |
|
| 52 |
+
| Qwen2.5-14B-Instruct | DeltaNet | 51.1M | [🤗model](https://huggingface.co/ByteDance-Seed/AHN-DN-for-Qwen-2.5-Instruct-14B) |
|
| 53 |
+
| Qwen2.5-14B-Instruct | GatedDeltaNet | 61.0M | [🤗model](https://huggingface.co/ByteDance-Seed/AHN-GDN-for-Qwen-2.5-Instruct-14B) |
|
| 54 |
|
| 55 |
### Evaluation
|
| 56 |
|