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="sail/longspec-QwQ-32B-Preview")
# Load model directly
from transformers import AutoTokenizer, Qwen2GlideDecoderLayer

tokenizer = AutoTokenizer.from_pretrained("sail/longspec-QwQ-32B-Preview")
model = Qwen2GlideDecoderLayer.from_pretrained("sail/longspec-QwQ-32B-Preview", device_map="auto")
Quick Links

This repository contains the LongSpec model described in LongSpec: Long-Context Lossless Speculative Decoding with Efficient Drafting and Verification.

For training and usage, see the code at https://github.com/sail-sg/LongSpec.

Downloads last month
162
Safetensors
Model size
0.6B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for sail/longspec-QwQ-32B-Preview