Instructions to use PracticeLLM/Custom-KoLLM-13B-v8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PracticeLLM/Custom-KoLLM-13B-v8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PracticeLLM/Custom-KoLLM-13B-v8")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("PracticeLLM/Custom-KoLLM-13B-v8") model = AutoModelForCausalLM.from_pretrained("PracticeLLM/Custom-KoLLM-13B-v8") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PracticeLLM/Custom-KoLLM-13B-v8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PracticeLLM/Custom-KoLLM-13B-v8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PracticeLLM/Custom-KoLLM-13B-v8", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/PracticeLLM/Custom-KoLLM-13B-v8
- SGLang
How to use PracticeLLM/Custom-KoLLM-13B-v8 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 "PracticeLLM/Custom-KoLLM-13B-v8" \ --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": "PracticeLLM/Custom-KoLLM-13B-v8", "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 "PracticeLLM/Custom-KoLLM-13B-v8" \ --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": "PracticeLLM/Custom-KoLLM-13B-v8", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use PracticeLLM/Custom-KoLLM-13B-v8 with Docker Model Runner:
docker model run hf.co/PracticeLLM/Custom-KoLLM-13B-v8
Update README.md
#2
by cherry0328 - opened
README.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
| 1 |
---
|
| 2 |
language:
|
| 3 |
- ko
|
| 4 |
-
datasets:
|
| 5 |
- kyujinpy/OpenOrca-ko-v3
|
| 6 |
library_name: transformers
|
| 7 |
pipeline_tag: text-generation
|
| 8 |
license: cc-by-nc-sa-4.0
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
# **⭐My custom LLM 13B⭐**
|
|
@@ -53,4 +55,4 @@ OpenOrca_tokenizer = AutoTokenizer.from_pretrained(repo)
|
|
| 53 |
# Hyperparameters
|
| 54 |
- QLoRA
|
| 55 |
- lora_target_modules '[gate_proj, down_proj, up_proj]'
|
| 56 |
-
- lora_r 64
|
|
|
|
| 1 |
---
|
| 2 |
language:
|
| 3 |
- ko
|
| 4 |
+
datasets:
|
| 5 |
- kyujinpy/OpenOrca-ko-v3
|
| 6 |
library_name: transformers
|
| 7 |
pipeline_tag: text-generation
|
| 8 |
license: cc-by-nc-sa-4.0
|
| 9 |
+
base_model:
|
| 10 |
+
- beomi/llama-2-koen-13b
|
| 11 |
---
|
| 12 |
|
| 13 |
# **⭐My custom LLM 13B⭐**
|
|
|
|
| 55 |
# Hyperparameters
|
| 56 |
- QLoRA
|
| 57 |
- lora_target_modules '[gate_proj, down_proj, up_proj]'
|
| 58 |
+
- lora_r 64
|