Instructions to use summit4you/Llama3-8B-COIG-CQIA-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use summit4you/Llama3-8B-COIG-CQIA-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="summit4you/Llama3-8B-COIG-CQIA-GGUF", filename="Llama3-8B-COIG-CQIA.Q8_0.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use summit4you/Llama3-8B-COIG-CQIA-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf summit4you/Llama3-8B-COIG-CQIA-GGUF:Q8_0 # Run inference directly in the terminal: llama-cli -hf summit4you/Llama3-8B-COIG-CQIA-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf summit4you/Llama3-8B-COIG-CQIA-GGUF:Q8_0 # Run inference directly in the terminal: llama-cli -hf summit4you/Llama3-8B-COIG-CQIA-GGUF:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf summit4you/Llama3-8B-COIG-CQIA-GGUF:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf summit4you/Llama3-8B-COIG-CQIA-GGUF:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf summit4you/Llama3-8B-COIG-CQIA-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf summit4you/Llama3-8B-COIG-CQIA-GGUF:Q8_0
Use Docker
docker model run hf.co/summit4you/Llama3-8B-COIG-CQIA-GGUF:Q8_0
- LM Studio
- Jan
- vLLM
How to use summit4you/Llama3-8B-COIG-CQIA-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "summit4you/Llama3-8B-COIG-CQIA-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "summit4you/Llama3-8B-COIG-CQIA-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/summit4you/Llama3-8B-COIG-CQIA-GGUF:Q8_0
- Ollama
How to use summit4you/Llama3-8B-COIG-CQIA-GGUF with Ollama:
ollama run hf.co/summit4you/Llama3-8B-COIG-CQIA-GGUF:Q8_0
- Unsloth Studio
How to use summit4you/Llama3-8B-COIG-CQIA-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for summit4you/Llama3-8B-COIG-CQIA-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for summit4you/Llama3-8B-COIG-CQIA-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for summit4you/Llama3-8B-COIG-CQIA-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use summit4you/Llama3-8B-COIG-CQIA-GGUF with Docker Model Runner:
docker model run hf.co/summit4you/Llama3-8B-COIG-CQIA-GGUF:Q8_0
- Lemonade
How to use summit4you/Llama3-8B-COIG-CQIA-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull summit4you/Llama3-8B-COIG-CQIA-GGUF:Q8_0
Run and chat with the model
lemonade run user.Llama3-8B-COIG-CQIA-GGUF-Q8_0
List all available models
lemonade list
YAML Metadata Warning:The pipeline tag "text2text-generation" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other
Model Summary
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
- License: Llama-3 License
- Base Model: Meta-Llama-3-8B-Instruct
- Model Size: 8.03B
- Context length: 8K
1. Introduction
Training framework: unsloth.
Training details:
- epochs: 1
- learning rate: 2e-4
- learning rate scheduler type: linear
- warmup steps: 5
- cutoff len (i.e. context length): 2048
- global batch size: 2
- fine-tuning type: full parameters
- optimizer: adamw_8bit
2. Usage
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")
- Downloads last month
- 3
8-bit