Downloads · 30 days
6
6% of all-time downloads
maifeeulasad/askubuntu-model
askubuntu-model is a machine learning model from maifeeulasad. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This model is a fine-tuned version of deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B.
Downloads · 30 days
6
6% of all-time downloads
All-time downloads
97
Public
Parameters
139M
20 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors853 MB · 99%
From the Hugging Face model README
This model is a fine-tuned version of deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B.
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model_id = "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B"
peft_model_id = "maifeeulasad/askubuntu-model"
model = AutoModelForCausalLM.from_pretrained(
base_model_id,
device_map="auto",
trust_remote_code=True,
)
model = PeftModel.from_pretrained(model, peft_model_id)
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
from transformers import pipeline
generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
question = "Tell me how to install rootless docker on ubuntu 18 LTS?"
output = generator(question, max_new_tokens=16384, return_full_text=False)[0]["generated_text"]
print(output)