Instructions to use DopeorNope/COKAL_merged_test-v1-13B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DopeorNope/COKAL_merged_test-v1-13B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DopeorNope/COKAL_merged_test-v1-13B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DopeorNope/COKAL_merged_test-v1-13B") model = AutoModelForCausalLM.from_pretrained("DopeorNope/COKAL_merged_test-v1-13B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DopeorNope/COKAL_merged_test-v1-13B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DopeorNope/COKAL_merged_test-v1-13B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DopeorNope/COKAL_merged_test-v1-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DopeorNope/COKAL_merged_test-v1-13B
- SGLang
How to use DopeorNope/COKAL_merged_test-v1-13B 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 "DopeorNope/COKAL_merged_test-v1-13B" \ --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": "DopeorNope/COKAL_merged_test-v1-13B", "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 "DopeorNope/COKAL_merged_test-v1-13B" \ --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": "DopeorNope/COKAL_merged_test-v1-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DopeorNope/COKAL_merged_test-v1-13B with Docker Model Runner:
docker model run hf.co/DopeorNope/COKAL_merged_test-v1-13B
The license is cc-by-nc-sa-4.0.
(μ£Ό)λ―Έλμ΄κ·Έλ£Ήμ¬λκ³Όμ²κ³Ό (μ£Ό)λ§μ»€μ LLM μ°κ΅¬ 컨μμμμΌλ‘ κ°λ°λ λͺ¨λΈμ λλ€
π»ββοΈCOKAL_merged_test-v1-13Bπ»ββοΈ
Model Details
Model Developers Seungyoo Lee(DopeorNope)
Input Models input text only.
Output Models generate text only.
Model Architecture
COKAL_merged_test-v1-13B is an auto-regressive language model based on the LLaMA2 transformer architecture.
Base Model
HumanF-MarkrAI/COKAL-DPO-13b-v2
MarkrAI/DopeorNope-maestro-v2-DPO-13b
Implemented Method
I utilized slerp merge to smoothly blend the gradients of the base models to create it.
The merging approach relies on some luck, but at the same time, if I have an accurate understanding of my model's performance, I can carefully select models that excel in each aspect to develop a well-balanced model.
Thanks to maywell for sharing useful tips related to the merge method.
Model Benchmark
KO-LLM leaderboard
- Follow up as Open KO-LLM LeaderBoard.
| Model | Average | Ko-ARC | Ko-HellaSwag | Ko-MMLU | Ko-TruthfulQA | Ko-CommonGen V2 |
|---|---|---|---|---|---|---|
| COKAL_merged_test-v1-13Bπ»ββοΈ | 52.72 | 51.45 | 60.55 | 44.8 | 49.05 | 57.73 |
| COKAL-DPO-13b-v2π»ββοΈ | 52.69 | 54.95 | 63.02 | 43.98 | 51.67 | 49.82 |
| COKAL-DPO_test-v2-13bπ»ββοΈ | 52.67 | 55.63 | 63.5 | 43.49 | 51.5 | 49.23 |
| hyeogi/Yi-6b-dpo-v0.2 | 52.63 | 41.72 | 52.96 | 46.69 | 52.38 | 69.42 |
| DopeorNope-maestro-v2-DPO-13bπ»ββοΈ | 49.42 | 45.14 | 56.69 | 41.37 | 42.26 | 61.63 |
Implementation Code
Load model
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
repo = "DopeorNope/COKAL_merged_test-v1-13B"
OpenOrca = AutoModelForCausalLM.from_pretrained(
repo,
return_dict=True,
torch_dtype=torch.float16,
device_map='auto'
)
OpenOrca_tokenizer = AutoTokenizer.from_pretrained(repo)
Prompt (Alpaca format)
prompt= f"μλλ λ¬Έμ λ₯Ό μ€λͺ
νλ μ§μμ¬νκ³Ό, ꡬ체μ μΈ λ΅λ³μ λ°©μμ μꡬνλ μ
λ ₯μ΄ ν¨κ» μλ λ¬Έμ₯μ
λλ€. μ΄ μμ²μ λν΄ μ μ νκ² λ΅λ³ν΄μ£ΌμΈμ.\n\n### μ§μμ¬ν:\n{instruction}\n\n### μ
λ ₯:\n{input}\n\n### λ΅λ³:\n"
prompt_no_input = f"μλλ λ¬Έμ λ₯Ό μ€λͺ
νλ μ§μμ¬νμ
λλ€. μ΄ μμ²μ λν΄ μ μ νκ² λ΅λ³ν΄μ£ΌμΈμ.\n\n### μ§μμ¬ν:\n{instruction}\n\n### λ΅λ³:\n"
Acknowledgement
μ΄ λͺ¨λΈμ κ³ΌνκΈ°μ μ 보ν΅μ λΆΒ·κ΄μ£Όκ΄μμκ° κ³΅λ μ§μν 'μΈκ³΅μ§λ₯ μ€μ¬ μ°μ μ΅ν© μ§μ λ¨μ§ μ‘°μ±μ¬μ 'μΌλ‘ μ§μμ λ°μ μνλ μ°κ΅¬ κ²°κ³Όμ λλ€.
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.
- Downloads last month
- 10