Downloads · 30 days
16
2% of all-time downloads
summit4you/Llama3-8B-COIG-CQIA-GGUF
Llama3-8B-COIG-CQIA-GGUF is a text generation model from summit4you. Use it when you need the model to write or continue text. The card lists the license as mit.
Llama3-8B-COIG-CQIA is an instruction-tuned language model for Chinese & English users with various abilities such as roleplaying & tool-using built upon the Meta-Llama-3-8B-Instruct model.
Downloads · 30 days
16
2% of all-time downloads
All-time downloads
652
Public
Repo size
8.5 GB
Likes
2
Public
Click a slice to open those files.
.gguf8.5 GB · 100%
From the Hugging Face model README
Llama3-8B-COIG-CQIA is an instruction-tuned language model for Chinese & English users with various abilities such as roleplaying & tool-using built upon the Meta-Llama-3-8B-Instruct model.
Developed by: Wenfeng Qiu
Training framework: unsloth.
Training details:
Inference, use to llama.cpp or a UI based system like GPT4All. You can install GPT4All by going here.
Here is the example in llama.cpp.
from llama_cpp import Llama
model = Llama(
"/Your/Path/To/Llama3-8B-COIG-CQIA.Q8_0.gguf",
verbose=False,
n_gpu_layers=-1,
)
system_prompt = "You are a helpful assistant."
def generate_reponse(_model, _messages, _max_tokens=8192):
_output = _model.create_chat_completion(
_messages,
stop=["<|eot_id|>", "<|end_of_text|>"],
max_tokens=_max_tokens,
)["choices"][0]["message"]["content"]
return _output
# The following are some examples
messages = [
{
"role": "system",
"content": system_prompt,
},
{"role": "user", "content": "你是谁?"},
]
print(generate_reponse(_model=model, _messages=messages), end="\n\n\n")