đ [MaziyarPanahi/Qwen2.5-7B-Instruct-GGUF]
This repository contains GGUF format model files for [Qwen/Qwen2.5-7B-Instruct], enabling text generation tasks.
đ Quick Start
This section will guide you through the basic steps to get started with the model. However, specific usage details will depend on the client or library you choose.
⨠Features
- Quantized Variants: Available in 2-bit, 3-bit, 4-bit, 5-bit, 6-bit, and 8-bit quantized formats.
- GGUF Format: Utilizes the new GGUF format introduced by the llama.cpp team, replacing the deprecated GGML format.
đĻ Installation
The installation process depends on the client or library you plan to use. Here are some common ones:
- llama.cpp: Refer to the official repository for installation instructions.
- llama-cpp-python: Install via
pip install llama-cpp-python
.
đģ Usage Examples
Basic Usage
The following example shows how to use the model with llama-cpp-python
:
from llama_cpp import Llama
llama = Llama(model_path="path/to/your/Qwen2.5-7B-Instruct-GGUF.gguf")
output = llama("Once upon a time", max_tokens=100)
print(output)
Advanced Usage
For more advanced scenarios, such as using the model with LangChain or an OpenAI-compatible API server, refer to the documentation of the respective libraries.
đ Documentation
About the Model
About GGUF
GGUF is a new format introduced by the llama.cpp team on August 21st, 2023. It is a replacement for GGML, which is no longer supported by llama.cpp.
Here is an incomplete list of clients and libraries that are known to support GGUF:
- llama.cpp. The source project for GGUF. Offers a CLI and a server option.
- llama-cpp-python, a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.
- LM Studio, an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration. Linux available, in beta as of 27/11/2023.
- text-generation-webui, the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration.
- KoboldCpp, a fully featured web UI, with GPU accel across all platforms and GPU architectures. Especially good for story telling.
- GPT4All, a free and open source local running GUI, supporting Windows, Linux and macOS with full GPU accel.
- LoLLMS Web UI, a great web UI with many interesting and unique features, including a full model library for easy model selection.
- Faraday.dev, an attractive and easy to use character-based chat GUI for Windows and macOS (both Silicon and Intel), with GPU acceleration.
- candle, a Rust ML framework with a focus on performance, including GPU support, and ease of use.
- ctransformers, a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server. Note, as of time of writing (November 27th 2023), ctransformers has not been updated in a long time and does not support many recent models.
đ§ Technical Details
The model is based on the [Qwen/Qwen2.5-7B-Instruct] architecture and has been quantized to various bit levels (2-bit, 3-bit, etc.) to reduce memory usage and improve inference speed.
đ License
The license information for this model can be found in the original model's repository Qwen/Qwen2.5-7B-Instruct.
đ¤ Special thanks
Special thanks to Georgi Gerganov and the whole team working on llama.cpp for making all of this possible.