Downloads · 30 days
46
4% of all-time downloads
khaimaitien/qa-expert-7B-V1.0-GGUF
qa-expert-7B-V1.0-GGUF is a machine learning model from khaimaitien. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repo contains the GGUF format model files for khaimaitien/qa-expert-7B-V1.0.
Downloads · 30 days
46
4% of all-time downloads
All-time downloads
1.3K
Public
Repo size
64.4 GB
Likes
2
Public
Click a slice to open those files.
.gguf26.3 GB · 100%
From the Hugging Face model README
This repo contains the GGUF format model files for khaimaitien/qa-expert-7B-V1.0.
You can get more information about how to use/train the model from this repo: https://github.com/khaimt/qa_expert
First, you need to clone the repo: https://github.com/khaimt/qa_expert
Then install the requirements:
pip install -r requirements.txt
Then install llama-cpp-python
Here is the example code:
from qa_expert import get_inference_model, InferenceType
def retrieve(query: str) -> str:
# You need to implement this retrieval function, input is a query and output is a string
# This can be treated as the function to call in function calling of OpenAI
return context
model_inference = get_inference_model(InferenceType.llama_cpp, "qa-expert-7B-V1.0.q4_0.gguf")
answer, messages = model_inference.generate_answer(question, retriever_func)