Text Generation
Transformers
PyTorch
qwen2
text-generation-inference
How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="thunlp/Qwen2-7B-Instruct-FR-Spec")
# Load model directly
from transformers import AutoTokenizer, Qwen2ForCausalLMEagle

tokenizer = AutoTokenizer.from_pretrained("thunlp/Qwen2-7B-Instruct-FR-Spec")
model = Qwen2ForCausalLMEagle.from_pretrained("thunlp/Qwen2-7B-Instruct-FR-Spec", device_map="auto")
Quick Links

Token frequency statistics based on SlimPajama-627B, used for FR-Spec (https://arxiv.org/abs/2502.14856), see more at https://github.com/thunlp/FR-Spec.

freq_32768.pt can be loaded by torch.load(), and it is a list of high-frequency tokens.

config.json and pytorch_model.bin are the same as https://huggingface.co/yuhuili/EAGLE-Qwen2-7B-Instruct, and can be downloaded from their repo.

Downloads last month
138
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for thunlp/Qwen2-7B-Instruct-FR-Spec

Base model

Qwen/Qwen2-7B
Finetuned
(130)
this model

Paper for thunlp/Qwen2-7B-Instruct-FR-Spec