Instructions to use Markr-AI/COKAL-DPO-13b-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Markr-AI/COKAL-DPO-13b-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Markr-AI/COKAL-DPO-13b-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Markr-AI/COKAL-DPO-13b-v2") model = AutoModelForCausalLM.from_pretrained("Markr-AI/COKAL-DPO-13b-v2") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Markr-AI/COKAL-DPO-13b-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Markr-AI/COKAL-DPO-13b-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Markr-AI/COKAL-DPO-13b-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Markr-AI/COKAL-DPO-13b-v2
- SGLang
How to use Markr-AI/COKAL-DPO-13b-v2 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 "Markr-AI/COKAL-DPO-13b-v2" \ --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": "Markr-AI/COKAL-DPO-13b-v2", "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 "Markr-AI/COKAL-DPO-13b-v2" \ --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": "Markr-AI/COKAL-DPO-13b-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Markr-AI/COKAL-DPO-13b-v2 with Docker Model Runner:
docker model run hf.co/Markr-AI/COKAL-DPO-13b-v2
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,9 +11,6 @@ license: cc-by-nc-sa-4.0
|
|
| 11 |
|
| 12 |
**(์ฃผ)๋ฏธ๋์ด๊ทธ๋ฃน์ฌ๋๊ณผ์ฒ๊ณผ (์ฃผ)๋ง์ปค์ LLM ์ฐ๊ตฌ ์ปจ์์์์ผ๋ก ๊ฐ๋ฐ๋ ๋ชจ๋ธ์
๋๋ค**
|
| 13 |
|
| 14 |
-
**DopeorNope๊ฐ๋ฐ์๊ฐ ํ๋ จํ์ฌ ์
๋ก๋ํ ๋ชจ๋ธ์
๋๋ค**
|
| 15 |
-
|
| 16 |
-
**๊ฐ๋ฐ์ ๊ถํ์ DopeorNope(Seungyoo Lee)์๊ฒ ์์ผ๋ฉฐ, ๋ชจ๋ธ ๋ฌธ์์ฌํญ์ ์ปจํ ๋ฐ๋๋๋ค**
|
| 17 |
|
| 18 |
**The license is `cc-by-nc-sa-4.0`.**
|
| 19 |
|
|
@@ -85,9 +82,9 @@ model_tokenizer = AutoTokenizer.from_pretrained(repo)
|
|
| 85 |
|
| 86 |
# Acknowledgement
|
| 87 |
|
| 88 |
-
์ด ๋ชจ๋ธ์ ๊ณผํ๊ธฐ์ ์ ๋ณดํต์ ๋ถยท๊ด์ฃผ๊ด์ญ์๊ฐ ๊ณต๋ ์ง์ํ '์ธ๊ณต์ง๋ฅ ์ค์ฌ ์ฐ์
์ตํฉ ์ง์ ๋จ์ง ์กฐ์ฑ์ฌ์
'์ผ๋ก ์ง์์ ๋ฐ์ ์ํ๋ ์ฐ๊ตฌ ๊ฒฐ๊ณผ์
๋๋ค.
|
| 89 |
|
| 90 |
-
This model was supported by Artificial intelligence industrial convergence cluster development project funded by the Ministry of Science and ICT(MSIT, Korea)&Gwangju Metropolitan City.
|
| 91 |
|
| 92 |
|
| 93 |
|
|
|
|
| 11 |
|
| 12 |
**(์ฃผ)๋ฏธ๋์ด๊ทธ๋ฃน์ฌ๋๊ณผ์ฒ๊ณผ (์ฃผ)๋ง์ปค์ LLM ์ฐ๊ตฌ ์ปจ์์์์ผ๋ก ๊ฐ๋ฐ๋ ๋ชจ๋ธ์
๋๋ค**
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
**The license is `cc-by-nc-sa-4.0`.**
|
| 16 |
|
|
|
|
| 82 |
|
| 83 |
# Acknowledgement
|
| 84 |
|
| 85 |
+
- ์ด ๋ชจ๋ธ์ ๊ณผํ๊ธฐ์ ์ ๋ณดํต์ ๋ถยท๊ด์ฃผ๊ด์ญ์๊ฐ ๊ณต๋ ์ง์ํ '์ธ๊ณต์ง๋ฅ ์ค์ฌ ์ฐ์
์ตํฉ ์ง์ ๋จ์ง ์กฐ์ฑ์ฌ์
'์ผ๋ก ์ง์์ ๋ฐ์ ์ํ๋ ์ฐ๊ตฌ ๊ฒฐ๊ณผ์
๋๋ค.
|
| 86 |
|
| 87 |
+
- This model was supported by Artificial intelligence industrial convergence cluster development project funded by the Ministry of Science and ICT(MSIT, Korea)&Gwangju Metropolitan City.
|
| 88 |
|
| 89 |
|
| 90 |
|