Downloads · 30 days
12
3% of all-time downloads
QwerkyAI/QRe-Llama-3-8B-Instruct-QDistill
QRe-Llama-3-8B-Instruct-QDistill is a text generation model from QwerkyAI. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
This is a hybrid Mamba-Transformer model based on the Llama 3.1 architecture, distilled from Llama 3.3 70B into a 8B parameter model using Qwerky's proprietary distillation method. The model uses MAMBA layers interlea…
Downloads · 30 days
12
3% of all-time downloads
All-time downloads
348
Public
Parameters
8.5B
17.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors17 GB · 100%
From the Hugging Face model README
This is a hybrid Mamba-Transformer model based on the Llama 3.1 architecture, distilled from Llama 3.3 70B into a 8B parameter model using Qwerky's proprietary distillation method. The model uses MAMBA layers interleaved with attention layers for efficient sequence modeling. The results are a 8B parameter model comparable in quality to Llama's 3.1 8B but running at speeds as fast or faster than Llama's 3.2 3B model.
pip install transformers torch safetensors
pip install flash-attn mamba-ssm causal-conv1d --no-build-isolation
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("QwerkyAI/QRe-Llama-3-8B-Instruct-QDistill")
model = AutoModelForCausalLM.from_pretrained(
"QwerkyAI/QRe-Llama-3-8B-Instruct-QDistill",
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
inputs = tokenizer("Hello, how are you?", return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0]))
pip install vllm qwerky-vllm-models
vllm serve QwerkyAI/QRe-Llama-3-8B-Instruct-QDistill
config.json - Model configuration with auto_mapmodeling_qwerky_llama_mamba_hybrid.py - Custom modeling classconfiguration_qwerky_llama_mamba_hybrid.py - Custom configuration classmodel.safetensors - Model weightsSee LICENSE file for details.