Views
No views yet
1# Download the model
2huggingface-cli download Kaleemullah/deepseek-ai-deepseek-r1-distill-llama-8b-f16 deepseek-ai-deepseek-r1-distill-llama-8b-f16.gguf --local-dir ./models
3
4# Run inference
5./llama-cli -m ./models/deepseek-ai-deepseek-r1-distill-llama-8b-f16.gguf -p "Your prompt here"1from llama_cpp import Llama
2
3# Load the model
4llm = Llama(
5 model_path="./models/deepseek-ai-deepseek-r1-distill-llama-8b-f16.gguf",
6 n_ctx=2048, # Context window
7 n_gpu_layers=-1 # Use GPU if available
8)
9
10# Generate text
11output = llm("Your prompt here", max_tokens=100)
12print(output['choices'][0]['text'])1# Create a Modelfile
2echo 'FROM ./models/deepseek-ai-deepseek-r1-distill-llama-8b-f16.gguf' > Modelfile
3
4# Create the model
5ollama create my-model -f Modelfile
6
7# Run the model
8ollama run my-model1@misc{deepseek-ai-DeepSeek-R1-Distill-Llama-8B,
2 author = {Original Model Authors},
3 title = {deepseek-ai/DeepSeek-R1-Distill-Llama-8B},
4 year = {2024},
5 publisher = {HuggingFace},
6 url = {https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Llama-8B}
7}convert_hf_to_gguf.py script.