Downloads · 30 days
10
5% of all-time downloads
ssmits/Qwen2.5-125B-Instruct
Qwen2.5-125B-Instruct is a text generation model from ssmits. Use it when you need the model to write or continue text. The card lists the license as other.
Qwen-125B is a Qwen/Qwen-72B self-merge made with MergeKit.
Downloads · 30 days
10
5% of all-time downloads
All-time downloads
206
Public
Parameters
125B
251 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors251 GB · 100%
From the Hugging Face model README
Qwen-125B is a Qwen/Qwen-72B self-merge made with MergeKit.
It was inspired by large merges like:
Special thanks to Eric Hartford for both inspiring and evaluating the original model, to Charles Goddard for creating MergeKit, and to Mathieu Labonne for creating the Meta-Llama-3-120B-Instruct model that served as the main inspiration for this merge.
This model is recommended for creative writing tasks. It uses the Qwen chat template with a default context window of 8K (can be extended with rope theta).
The model is generally quite creative and has a good writing style. It may occasionally output typos and show a preference for uppercase text.
To be quantized.
This model has yet to be thoroughly evaluated. It is expected to excel in creative writing but may have limitations in other tasks. Use it with caution and don't expect it to outperform state-of-the-art models outside of specific creative use cases.
Once the model is created and tested, this section will be updated with:
We encourage users to share their experiences and evaluations to help build a comprehensive understanding of the model's capabilities and limitations.
slices:
- sources:
- layer_range: [0, 20]
model: Qwen/Qwen-72B
- sources:
- layer_range: [10, 30]
model: Qwen/Qwen-72B
- sources:
- layer_range: [20, 40]
model: Qwen/Qwen-72B
- sources:
- layer_range: [30, 50]
model: Qwen/Qwen-72B
- sources:
- layer_range: [40, 60]
model: Qwen/Qwen-72B
- sources:
- layer_range: [50, 70]
model: Qwen/Qwen-72B
- sources:
- layer_range: [60, 80]
model: Qwen/Qwen-72B
merge_method: passthrough
dtype: bfloat16
!pip install -qU transformers accelerate
from transformers import AutoTokenizer
import transformers
import torch
model = "ssmits/Qwen2.5-125B-Instruct"
messages = [{"role": "user", "content": "What is a large language model?"}]
tokenizer = AutoTokenizer.from_pretrained(model)
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
pipeline = transformers.pipeline(
"text-generation",
model=model,
torch_dtype=torch.float16,
device_map="auto",
)
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])