How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="RichardErkhov/Pinchao_-_ChatBot_NFR-gguf",
	filename="",
)
llm.create_chat_completion(
	messages = "No input example has been defined for this model task."
)

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Quantization made by Richard Erkhov.

Github

Discord

Request more models

ChatBot_NFR - GGUF

Name Quant method Size
ChatBot_NFR.Q2_K.gguf Q2_K 1.32GB
ChatBot_NFR.IQ3_XS.gguf IQ3_XS 1.51GB
ChatBot_NFR.IQ3_S.gguf IQ3_S 1.57GB
ChatBot_NFR.Q3_K_S.gguf Q3_K_S 1.57GB
ChatBot_NFR.IQ3_M.gguf IQ3_M 1.73GB
ChatBot_NFR.Q3_K.gguf Q3_K 1.82GB
ChatBot_NFR.Q3_K_M.gguf Q3_K_M 1.82GB
ChatBot_NFR.Q3_K_L.gguf Q3_K_L 1.94GB
ChatBot_NFR.IQ4_XS.gguf IQ4_XS 1.93GB
ChatBot_NFR.Q4_0.gguf Q4_0 2.03GB
ChatBot_NFR.IQ4_NL.gguf IQ4_NL 2.04GB
ChatBot_NFR.Q4_K_S.gguf Q4_K_S 2.04GB
ChatBot_NFR.Q4_K.gguf Q4_K 2.23GB
ChatBot_NFR.Q4_K_M.gguf Q4_K_M 2.23GB
ChatBot_NFR.Q4_1.gguf Q4_1 2.24GB
ChatBot_NFR.Q5_0.gguf Q5_0 2.46GB
ChatBot_NFR.Q5_K_S.gguf Q5_K_S 2.46GB
ChatBot_NFR.Q5_K.gguf Q5_K 2.62GB
ChatBot_NFR.Q5_K_M.gguf Q5_K_M 2.62GB
ChatBot_NFR.Q5_1.gguf Q5_1 2.68GB
ChatBot_NFR.Q6_K.gguf Q6_K 2.92GB
ChatBot_NFR.Q8_0.gguf Q8_0 3.78GB

Original model description:

tags: - autotrain - text-generation-inference - text-generation - peft library_name: transformers base_model: microsoft/Phi-3-mini-4k-instruct widget: - messages: - role: user content: What is your favorite condiment? license: apache-2.0 language: - es - en datasets: - Pinchao/ChatBot_NFR

Model Trained Using AutoTrain

This model was trained using AutoTrain. For more information, please visit AutoTrain.

Usage


from transformers import AutoModelForCausalLM, AutoTokenizer

model_path = "Pinchao/ChatBot_NFR"

tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(
    model_path,
    device_map="auto",
    torch_dtype='auto'
).eval()

# Prompt content: "hi"
messages = [
    {"role": "user", "content": "hi"}
]

input_ids = tokenizer.apply_chat_template(conversation=messages, tokenize=True, add_generation_prompt=True, return_tensors='pt')
output_ids = model.generate(input_ids.to('cuda'))
response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True)

# Model response: "Hello! How can I assist you today?"
print(response)
Downloads last month
39
GGUF
Model size
4B params
Architecture
phi3
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support