Instructions to use beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF
- SGLang
How to use beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF 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 "beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF" \ --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": "beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF", "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 "beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF" \ --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": "beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Studio
How to use beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-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 beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-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 beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF", max_seq_length=2048, ) - Docker Model Runner
How to use beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF with Docker Model Runner:
docker model run hf.co/beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- unsloth
|
| 5 |
+
- KoAlpaca
|
| 6 |
+
- Solar-Ko
|
| 7 |
+
- llama-cpp
|
| 8 |
+
- gguf-my-lora
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
datasets:
|
| 11 |
+
- beomi/KoAlpaca-RealQA
|
| 12 |
+
language:
|
| 13 |
+
- ko
|
| 14 |
+
base_model: beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B
|
| 15 |
+
pipeline_tag: text-generation
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B-Q8_0-GGUF
|
| 19 |
+
This LoRA adapter was converted to GGUF format from [`beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B`](https://huggingface.co/beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B) via the ggml.ai's [GGUF-my-lora](https://huggingface.co/spaces/ggml-org/gguf-my-lora) space.
|
| 20 |
+
Refer to the [original adapter repository](https://huggingface.co/beomi/KoAlpaca-RealQA-Solar-Ko-Recovery-11B) for more details.
|
| 21 |
+
|
| 22 |
+
## Use with llama.cpp
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
# with cli
|
| 26 |
+
llama-cli -m base_model.gguf --lora KoAlpaca-RealQA-Solar-Ko-Recovery-11B-q8_0.gguf (...other args)
|
| 27 |
+
|
| 28 |
+
# with server
|
| 29 |
+
llama-server -m base_model.gguf --lora KoAlpaca-RealQA-Solar-Ko-Recovery-11B-q8_0.gguf (...other args)
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
To know more about LoRA usage with llama.cpp server, refer to the [llama.cpp server documentation](https://github.com/ggerganov/llama.cpp/blob/master/examples/server/README.md).
|