Text Generation
Transformers
Safetensors
qwen2
mergekit
Merge
conversational
text-generation-inference
Instructions to use AIencoder/Qwen2.5CMR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AIencoder/Qwen2.5CMR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AIencoder/Qwen2.5CMR") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AIencoder/Qwen2.5CMR") model = AutoModelForCausalLM.from_pretrained("AIencoder/Qwen2.5CMR", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AIencoder/Qwen2.5CMR with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AIencoder/Qwen2.5CMR" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AIencoder/Qwen2.5CMR", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AIencoder/Qwen2.5CMR
- SGLang
How to use AIencoder/Qwen2.5CMR 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 "AIencoder/Qwen2.5CMR" \ --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": "AIencoder/Qwen2.5CMR", "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 "AIencoder/Qwen2.5CMR" \ --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": "AIencoder/Qwen2.5CMR", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AIencoder/Qwen2.5CMR with Docker Model Runner:
docker model run hf.co/AIencoder/Qwen2.5CMR
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,13 +1,11 @@
|
|
| 1 |
---
|
| 2 |
base_model:
|
| 3 |
-
- Qwen/Qwen2.5-7B-Instruct
|
| 4 |
- Qwen/Qwen2.5-Coder-7B-Instruct
|
| 5 |
- Qwen/Qwen2.5-Math-7B-Instruct
|
| 6 |
tags:
|
| 7 |
- merge
|
| 8 |
- mergekit
|
| 9 |
- lazymergekit
|
| 10 |
-
- Qwen/Qwen2.5-7B-Instruct
|
| 11 |
- Qwen/Qwen2.5-Coder-7B-Instruct
|
| 12 |
- Qwen/Qwen2.5-Math-7B-Instruct
|
| 13 |
---
|
|
@@ -15,7 +13,6 @@ tags:
|
|
| 15 |
# Qwen2.5CMR
|
| 16 |
|
| 17 |
Qwen2.5CMR is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
|
| 18 |
-
* [Qwen/Qwen2.5-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct)
|
| 19 |
* [Qwen/Qwen2.5-Coder-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct)
|
| 20 |
* [Qwen/Qwen2.5-Math-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Math-7B-Instruct)
|
| 21 |
|
|
@@ -25,22 +22,18 @@ Qwen2.5CMR is a merge of the following models using [LazyMergekit](https://colab
|
|
| 25 |
merge_method: dare_ties
|
| 26 |
base_model: Qwen/Qwen2.5-7B-Instruct
|
| 27 |
models:
|
| 28 |
-
- model: Qwen/Qwen2.5-7B-Instruct
|
| 29 |
-
parameters:
|
| 30 |
-
weight: 0.3
|
| 31 |
-
density: 0.5
|
| 32 |
- model: Qwen/Qwen2.5-Coder-7B-Instruct
|
| 33 |
parameters:
|
| 34 |
-
weight: 0.
|
| 35 |
density: 0.7
|
| 36 |
- model: Qwen/Qwen2.5-Math-7B-Instruct
|
| 37 |
parameters:
|
| 38 |
-
weight: 0.
|
| 39 |
density: 0.6
|
| 40 |
parameters:
|
| 41 |
int8_mask: true
|
| 42 |
normalize: true
|
| 43 |
-
|
| 44 |
tokenizer_source: Qwen/Qwen2.5-7B-Instruct
|
| 45 |
```
|
| 46 |
|
|
|
|
| 1 |
---
|
| 2 |
base_model:
|
|
|
|
| 3 |
- Qwen/Qwen2.5-Coder-7B-Instruct
|
| 4 |
- Qwen/Qwen2.5-Math-7B-Instruct
|
| 5 |
tags:
|
| 6 |
- merge
|
| 7 |
- mergekit
|
| 8 |
- lazymergekit
|
|
|
|
| 9 |
- Qwen/Qwen2.5-Coder-7B-Instruct
|
| 10 |
- Qwen/Qwen2.5-Math-7B-Instruct
|
| 11 |
---
|
|
|
|
| 13 |
# Qwen2.5CMR
|
| 14 |
|
| 15 |
Qwen2.5CMR is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
|
|
|
|
| 16 |
* [Qwen/Qwen2.5-Coder-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct)
|
| 17 |
* [Qwen/Qwen2.5-Math-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Math-7B-Instruct)
|
| 18 |
|
|
|
|
| 22 |
merge_method: dare_ties
|
| 23 |
base_model: Qwen/Qwen2.5-7B-Instruct
|
| 24 |
models:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
- model: Qwen/Qwen2.5-Coder-7B-Instruct
|
| 26 |
parameters:
|
| 27 |
+
weight: 0.5
|
| 28 |
density: 0.7
|
| 29 |
- model: Qwen/Qwen2.5-Math-7B-Instruct
|
| 30 |
parameters:
|
| 31 |
+
weight: 0.5
|
| 32 |
density: 0.6
|
| 33 |
parameters:
|
| 34 |
int8_mask: true
|
| 35 |
normalize: true
|
| 36 |
+
dtype: bfloat16
|
| 37 |
tokenizer_source: Qwen/Qwen2.5-7B-Instruct
|
| 38 |
```
|
| 39 |
|