Downloads · 30 days
9
10% of all-time downloads
raditotev/radipro-chatbot-Llama-3.2-1B-Instruct-GGUF
radipro-chatbot-Llama-3.2-1B-Instruct-GGUF is a machine learning model from raditotev. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama3.2.
This is a quantized version of the Meta Llama 3.2 1B Instruct model, optimized for efficient inference using the GGUF format with Q4KM quantization. The model has been quantized to 4-bit precision using the K-quant me…
Downloads · 30 days
9
10% of all-time downloads
All-time downloads
94
Public
Repo size
808 MB
Likes
0
Public
Click a slice to open those files.
.gguf808 MB · 100%
From the Hugging Face model README
This is a quantized version of the Meta Llama 3.2 1B Instruct model, optimized for efficient inference using the GGUF format with Q4_K_M quantization. The model has been quantized to 4-bit precision using the K-quant method (Medium quality), providing a good balance between model size, inference speed, and quality.
This model has been trained to provide helpful, accurate, and contextually appropriate responses regarding the RadiPro's services. Since RadiPro AI agency is a rather small company with limited number of services the chatbot's main purpose is to demonstrate to clients what potential implementation on their platform might look.
# Download llama.cpp
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
make
# Run inference
./main -m radipro-chatbot-Llama-3.2-1B-Instruct.Q4_K_M.gguf \
-p "Your prompt here" \
-n 128
from llama_cpp import Llama
# Load the model
llm = Llama(
model_path="radipro-chatbot-Llama-3.2-1B-Instruct.Q4_K_M.gguf",
n_ctx=2048, # Context window
n_threads=4, # Number of CPU threads
)
# Generate text
response = llm(
"What is artificial intelligence?",
max_tokens=128,
temperature=0.7,
top_p=0.9,
)
print(response['choices'][0]['text'])
# Create a Modelfile
cat > Modelfile << EOF
FROM ./radipro-chatbot-Llama-3.2-1B-Instruct.Q4_K_M.gguf
TEMPLATE """{{ if .System }}<|start_header_id|>system<|end_header_id|>
{{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>
{{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>
{{ .Response }}<|eot_id|>"""
PARAMETER temperature 0.7
PARAMETER top_p 0.9
EOF
# Create and run
ollama create radipro-chatbot -f Modelfile
ollama run radipro-chatbot
This model is intended for research and educational purposes. Users should be aware of potential biases and limitations. Please review the Llama 3.2 Community License for usage terms.
If you use this model, please cite the original Llama 3.2 model:
@misc{llama32,
title={Llama 3.2},
author={Meta AI},
year={2024},
howpublished={\url{https://llama.meta.com/llama3/}}
}
This model is released under the Llama 3.2 Community License. Please review the license terms before use.
For questions, issues, or contributions related to this quantized model, please open an issue in the repository.
Note: This is a quantized model card. For the full-precision model, please refer to the original Llama 3.2 1B Instruct model.