Text Generation
Transformers
PyTorch
Safetensors
Korean
English
llama
korean
foundation
text-generation-inference
Instructions to use quantumaikr/KoreanLM-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use quantumaikr/KoreanLM-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="quantumaikr/KoreanLM-3B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("quantumaikr/KoreanLM-3B") model = AutoModelForCausalLM.from_pretrained("quantumaikr/KoreanLM-3B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use quantumaikr/KoreanLM-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "quantumaikr/KoreanLM-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "quantumaikr/KoreanLM-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/quantumaikr/KoreanLM-3B
- SGLang
How to use quantumaikr/KoreanLM-3B 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 "quantumaikr/KoreanLM-3B" \ --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": "quantumaikr/KoreanLM-3B", "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 "quantumaikr/KoreanLM-3B" \ --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": "quantumaikr/KoreanLM-3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use quantumaikr/KoreanLM-3B with Docker Model Runner:
docker model run hf.co/quantumaikr/KoreanLM-3B
Commit History
-
Upload LlamaForCausalLM
f492177 -
Training in progress, step 6000
bb5f5cd -
Training in progress, step 4000
2a89c10 -
Training in progress, step 2000
9cdaf6e -
Upload LlamaForCausalLM
fdcc2d4 -
Training in progress, step 25000
c2619ba -
Training in progress, step 24000
ee0d458 -
Training in progress, step 23000
b6c1d7d -
Training in progress, step 22000
550ca6c -
Training in progress, step 21000
fd93a5f
-
Training in progress, step 20000
3391986 -
Training in progress, step 19000
0e65a52 -
Training in progress, step 18000
01827ec -
Training in progress, step 17000
d48b8c7 -
Training in progress, step 16000
7fd9eb7 -
Training in progress, step 15000
bc02f15 -
Training in progress, step 14000
618880b -
Training in progress, step 13000
6036064 -
Training in progress, step 12000
060f07d -
Training in progress, step 11000
e4b7e80 -
Training in progress, step 10000
6cd52b1 -
Training in progress, step 9000
07531e5 -
Training in progress, step 8000
0446697 -
Training in progress, step 7000
b1d260d -
Training in progress, step 6000
1444d03 -
Training in progress, step 5000
057be4f -
Training in progress, step 4000
679fa0b -
Training in progress, step 3000
a4128f5 -
Training in progress, step 2000
380b4e0 -
Training in progress, step 1000
d9d0380 -
Update README.md
0e90a54 -
Upload LlamaForCausalLM
8c52377 -
Update README.md
6b22f37 -
Update README.md
377aa75 -
Create README.md
451f497 -
Upload LlamaForCausalLM
94eb90f
-
Upload LlamaForCausalLM
791fa62 -
Training in progress, epoch 1
0a05509 -
Upload LlamaForCausalLM
de1796e -
Training in progress, epoch 0
d635c43
-
Upload LlamaForCausalLM
9d93f2d -
Training in progress, epoch 0
eb609bc
-
Upload LlamaForCausalLM
0dc1e1a -
Upload LlamaForCausalLM
63702dc -
Training in progress, step 1000
790189f -
Upload LlamaForCausalLM
d77c7a7 -
Upload tokenizer
3a43d5c -
initial commit
a888eb8