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.
1# Download llama.cpp
2git clone https://github.com/ggerganov/llama.cpp.git
3cd llama.cpp
4make
5
6# Run inference
7./main -m radipro-chatbot-Llama-3.2-1B-Instruct.Q4_K_M.gguf \
8 -p "Your prompt here" \
9 -n 128
1from llama_cpp import Llama
2
3# Load the model
4llm = Llama(
5 model_path="radipro-chatbot-Llama-3.2-1B-Instruct.Q4_K_M.gguf",
6 n_ctx=2048, # Context window
7 n_threads=4, # Number of CPU threads
8)
9
10# Generate text
11response = llm(
12 "What is artificial intelligence?",
13 max_tokens=128,
14 temperature=0.7,
15 top_p=0.9,
16)
17
18print(response['choices'][0]['text'])
1# Create a Modelfile
2cat > Modelfile << EOF
3FROM ./radipro-chatbot-Llama-3.2-1B-Instruct.Q4_K_M.gguf
4TEMPLATE """{{ if .System }}<|start_header_id|>system<|end_header_id|>
5
6{{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>
7
8{{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>
9
10{{ .Response }}<|eot_id|>"""
11PARAMETER temperature 0.7
12PARAMETER top_p 0.9
13EOF
14
15# Create and run
16ollama create radipro-chatbot -f Modelfile
17ollama 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.
1@misc{llama32,
2 title={Llama 3.2},
3 author={Meta AI},
4 year={2024},
5 howpublished={\url{https://llama.meta.com/llama3/}}
6}
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.