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
- 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
Upload 3 files
Browse files
pytorch_model-00001-of-00003.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9bb8bbd5d5b829805ccff7a91802c545cc01a2b57d5ca96c346dfb757c9eea6f
|
| 3 |
+
size 9990664202
|
pytorch_model-00002-of-00003.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:859596b648bf01534e3db297c4f11239c9fa12e1ec761140a7d601c483e0f02e
|
| 3 |
+
size 9867457970
|
pytorch_model-00003-of-00003.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:97e24ef9e6c08e463cb33416bfa2562e469080b224dfbdf0d244b61dc9007424
|
| 3 |
+
size 6467338708
|