Text Generation
Transformers
PyTorch
Safetensors
English
Korean
llama
causal-lm
42dot_llm
text-generation-inference
Instructions to use 42dot/42dot_LLM-PLM-1.3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 42dot/42dot_LLM-PLM-1.3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="42dot/42dot_LLM-PLM-1.3B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("42dot/42dot_LLM-PLM-1.3B") model = AutoModelForCausalLM.from_pretrained("42dot/42dot_LLM-PLM-1.3B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use 42dot/42dot_LLM-PLM-1.3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "42dot/42dot_LLM-PLM-1.3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "42dot/42dot_LLM-PLM-1.3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/42dot/42dot_LLM-PLM-1.3B
- SGLang
How to use 42dot/42dot_LLM-PLM-1.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 "42dot/42dot_LLM-PLM-1.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": "42dot/42dot_LLM-PLM-1.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 "42dot/42dot_LLM-PLM-1.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": "42dot/42dot_LLM-PLM-1.3B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use 42dot/42dot_LLM-PLM-1.3B with Docker Model Runner:
docker model run hf.co/42dot/42dot_LLM-PLM-1.3B
Update README.md
Browse files
README.md
CHANGED
|
@@ -96,14 +96,14 @@ We evaluate 42dot-PLM on a variety of academic benchmarks both in Korean and Eng
|
|
| 96 |
The contents generated by 42dot LLM series ("42dot LLM") do not necessarily reflect the views or opinions of 42dot Inc. ("42dot"). 42dot disclaims any and all liability to any part for any direct, indirect, implied, punitive, special, incidental, or other consequential damages arising from any use of the 42dot LLM and its generated contents.
|
| 97 |
|
| 98 |
## License
|
| 99 |
-
The 42dot-PLM is licensed under the Creative Commons Attribution-NonCommercial 4.0 (CC BY-NC 4.0)
|
| 100 |
|
| 101 |
## Citation
|
| 102 |
|
| 103 |
```
|
| 104 |
-
@misc{
|
| 105 |
-
title={42dot
|
| 106 |
-
author={Woo-Jong Ryu and Sang-Kil Park and Jinwoo Park and
|
| 107 |
year={2023},
|
| 108 |
url = {https://github.com/42dot/42dot_LLM},
|
| 109 |
version = {pre-release},
|
|
|
|
| 96 |
The contents generated by 42dot LLM series ("42dot LLM") do not necessarily reflect the views or opinions of 42dot Inc. ("42dot"). 42dot disclaims any and all liability to any part for any direct, indirect, implied, punitive, special, incidental, or other consequential damages arising from any use of the 42dot LLM and its generated contents.
|
| 97 |
|
| 98 |
## License
|
| 99 |
+
The 42dot-PLM is licensed under the Creative Commons Attribution-NonCommercial 4.0 (CC BY-NC 4.0).
|
| 100 |
|
| 101 |
## Citation
|
| 102 |
|
| 103 |
```
|
| 104 |
+
@misc{42dot2023llm,
|
| 105 |
+
title={42dot LLM: A Series of Large Language Model by 42dot},
|
| 106 |
+
author={Woo-Jong Ryu and Sang-Kil Park and Jinwoo Park and Seongmin Lee and Yongkeun Hwang},
|
| 107 |
year={2023},
|
| 108 |
url = {https://github.com/42dot/42dot_LLM},
|
| 109 |
version = {pre-release},
|