Downloads · 30 days
11
6% of all-time downloads
CoNDeNse-AI/GLM-5.1-Qwen3-1.7B-CoNDeNse
GLM-5.1-Qwen3-1.7B-CoNDeNse is a text generation model from CoNDeNse-AI. Use it when you need the model to write or continue text. It is set up for peft.
Part of the CoNDeNse project — compressing the reasoning capability of large models into small, deployable ones.
Downloads · 30 days
11
6% of all-time downloads
All-time downloads
181
Public
Parameters
1.7B
3.6 GB on disk
Likes
5
Public
Click a slice to open those files.
.safetensors3.6 GB · 100%
From the Hugging Face model README
Part of the CoNDeNse project — compressing the reasoning capability of large models into small, deployable ones.
May HALLUCINATE
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen3-1.7B",
torch_dtype=torch.float16,
device_map="cuda",
)
tokenizer = AutoTokenizer.from_pretrained("CoNDeNse-AI/GLM-5.1-Qwen3-1.7B-CoNDeNse")
model = PeftModel.from_pretrained(base_model, "CoNDeNse-AI/GLM-5.1-Qwen3-1.7B-CoNDeNse")
prompt = "<|im_start|>user\nYour question here<|im_end|>\n<|im_start|>assistant\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.7, do_sample=True)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))