Downloads · 30 days
209
6% of all-time downloads
vishanoberoi/Llama-2-7b-chat-hf-finedtuned-to-GGUF
Llama-2-7b-chat-hf-finedtuned-to-GGUF is a question answering model from vishanoberoi. Use it when the input is a question plus a passage. It is set up for transformers.
This model is a fine-tuned version of Llama-2-Chat-7b on company-specific question-answers data. It is designed for efficient performance while maintaining high-quality output, suitable for conversational AI applicati…
Downloads · 30 days
209
6% of all-time downloads
All-time downloads
3.2K
Public
Repo size
20.6 GB
Likes
3
Public
Click a slice to open those files.
.gguf20.6 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of Llama-2-Chat-7b on company-specific question-answers data. It is designed for efficient performance while maintaining high-quality output, suitable for conversational AI applications.
https://github.com/VishanOberoi/FineTuningForTheGPUPoor?tab=readme-ov-file
It was finetuned using QLORA and PEFT. After fine-tuning, the adapters were merged with the base model and then quantized to GGUF.
This model is optimized for direct use in conversational AI, particularly for generating responses based on company-specific data. It can be utilized effectively in customer service bots, FAQ bots, and other applications where accurate and contextually relevant answers are required.
ctransformers:from ctransformers import AutoModelForCausalLM, AutoTokenizer
llm = AutoModelForCausalLM.from_pretrained("vishanoberoi/Llama-2-7b-chat-hf-finedtuned-to-GGUF", model_file="finetuned.gguf", model_type="llama", gpu_layers = 50, max_new_tokens = 2000, temperature = 0.2, top_k = 40, top_p = 0.6, context_length = 6000)
system_prompt = "<<SYS>>You are a useful bot... <</SYS>>"
user_prompt = "Tell me about your company"
full_prompt = f"{system_prompt}\n[INST]{user_prompt}[/INST]"
response = llm(full_prompt)
print(response)