Instructions to use TheBloke/koOpenChat-sft-GPTQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TheBloke/koOpenChat-sft-GPTQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TheBloke/koOpenChat-sft-GPTQ")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TheBloke/koOpenChat-sft-GPTQ") model = AutoModelForCausalLM.from_pretrained("TheBloke/koOpenChat-sft-GPTQ", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TheBloke/koOpenChat-sft-GPTQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TheBloke/koOpenChat-sft-GPTQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheBloke/koOpenChat-sft-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TheBloke/koOpenChat-sft-GPTQ
- SGLang
How to use TheBloke/koOpenChat-sft-GPTQ with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "TheBloke/koOpenChat-sft-GPTQ" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheBloke/koOpenChat-sft-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "TheBloke/koOpenChat-sft-GPTQ" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TheBloke/koOpenChat-sft-GPTQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TheBloke/koOpenChat-sft-GPTQ with Docker Model Runner:
docker model run hf.co/TheBloke/koOpenChat-sft-GPTQ
Upload README.md
Browse files
README.md
CHANGED
|
@@ -113,12 +113,12 @@ Most GPTQ files are made with AutoGPTQ. Mistral models are currently made with T
|
|
| 113 |
|
| 114 |
| Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
|
| 115 |
| ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
|
| 116 |
-
| [main](https://huggingface.co/TheBloke/koOpenChat-sft-GPTQ/tree/main) | 4 | 128 | Yes | 0.1 | [
|
| 117 |
-
| [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/koOpenChat-sft-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [
|
| 118 |
-
| [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/koOpenChat-sft-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [
|
| 119 |
-
| [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/koOpenChat-sft-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [
|
| 120 |
-
| [gptq-8bit-32g-actorder_True](https://huggingface.co/TheBloke/koOpenChat-sft-GPTQ/tree/gptq-8bit-32g-actorder_True) | 8 | 32 | Yes | 0.1 | [
|
| 121 |
-
| [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/koOpenChat-sft-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [
|
| 122 |
|
| 123 |
<!-- README_GPTQ.md-provided-files end -->
|
| 124 |
|
|
|
|
| 113 |
|
| 114 |
| Branch | Bits | GS | Act Order | Damp % | GPTQ Dataset | Seq Len | Size | ExLlama | Desc |
|
| 115 |
| ------ | ---- | -- | --------- | ------ | ------------ | ------- | ---- | ------- | ---- |
|
| 116 |
+
| [main](https://huggingface.co/TheBloke/koOpenChat-sft-GPTQ/tree/main) | 4 | 128 | Yes | 0.1 | [Korean Alpaca](https://huggingface.co/datasets/beomi/KoAlpaca-v1.1a/viewer/) | 4096 | 4.16 GB | Yes | 4-bit, with Act Order and group size 128g. Uses even less VRAM than 64g, but with slightly lower accuracy. |
|
| 117 |
+
| [gptq-4bit-32g-actorder_True](https://huggingface.co/TheBloke/koOpenChat-sft-GPTQ/tree/gptq-4bit-32g-actorder_True) | 4 | 32 | Yes | 0.1 | [Korean Alpaca](https://huggingface.co/datasets/beomi/KoAlpaca-v1.1a/viewer/) | 4096 | 4.57 GB | Yes | 4-bit, with Act Order and group size 32g. Gives highest possible inference quality, with maximum VRAM usage. |
|
| 118 |
+
| [gptq-8bit--1g-actorder_True](https://huggingface.co/TheBloke/koOpenChat-sft-GPTQ/tree/gptq-8bit--1g-actorder_True) | 8 | None | Yes | 0.1 | [Korean Alpaca](https://huggingface.co/datasets/beomi/KoAlpaca-v1.1a/viewer/) | 4096 | 7.52 GB | No | 8-bit, with Act Order. No group size, to lower VRAM requirements. |
|
| 119 |
+
| [gptq-8bit-128g-actorder_True](https://huggingface.co/TheBloke/koOpenChat-sft-GPTQ/tree/gptq-8bit-128g-actorder_True) | 8 | 128 | Yes | 0.1 | [Korean Alpaca](https://huggingface.co/datasets/beomi/KoAlpaca-v1.1a/viewer/) | 4096 | 7.68 GB | No | 8-bit, with group size 128g for higher inference quality and with Act Order for even higher accuracy. |
|
| 120 |
+
| [gptq-8bit-32g-actorder_True](https://huggingface.co/TheBloke/koOpenChat-sft-GPTQ/tree/gptq-8bit-32g-actorder_True) | 8 | 32 | Yes | 0.1 | [Korean Alpaca](https://huggingface.co/datasets/beomi/KoAlpaca-v1.1a/viewer/) | 4096 | 8.17 GB | No | 8-bit, with group size 32g and Act Order for maximum inference quality. |
|
| 121 |
+
| [gptq-4bit-64g-actorder_True](https://huggingface.co/TheBloke/koOpenChat-sft-GPTQ/tree/gptq-4bit-64g-actorder_True) | 4 | 64 | Yes | 0.1 | [Korean Alpaca](https://huggingface.co/datasets/beomi/KoAlpaca-v1.1a/viewer/) | 4096 | 4.30 GB | Yes | 4-bit, with Act Order and group size 64g. Uses less VRAM than 32g, but with slightly lower accuracy. |
|
| 122 |
|
| 123 |
<!-- README_GPTQ.md-provided-files end -->
|
| 124 |
|