Instructions to use aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec") model = AutoModelForCausalLM.from_pretrained("aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec
- SGLang
How to use aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec 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 "aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec with Docker Model Runner:
docker model run hf.co/aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec
Model Card for Model ID
chat-vector ๋ ผ๋ฌธ( https://arxiv.org/abs/2310.04799v2 )์ ๊ทผ๊ฑฐํ์ฌ,
llama3์ pre-trained ๋ชจ๋ธ์ parameter์ instruction ๋ชจ๋ธ์ ๋งค๊ฐ๋ณ์์ ์ฐจ์ด๋ฅผ
beomi๋์ Llama-3-Open-Ko-8B์ ์ ์ฉํ ๋ชจ๋ธ
maywell๋์ ์ด ๋ฐฉ๋ฒ๋ก ( https://huggingface.co/blog/maywell/llm-feature-transfer )์ ๋ฐ์๋ค์ฌ ๊ฐ์ค์น ์ ๋ฐ์ดํธ
64GB์ ram ์์คํ ํ์์ ์งํํ๋ค๋ณด๋, ์๋ฃํ์ bf16ํํ๋ก ์งํํ์์
Metric
results/all/aeolian83/Llama-3-Open-Ko-8B-aeolian83-chatvec
| 0 | 5 | 10 | |
|---|---|---|---|
| kobest_boolq (macro_f1) | 0.64898 | 0.603325 | 0.575417 |
| kobest_copa (macro_f1) | 0.682517 | 0.706718 | 0.693293 |
| kobest_hellaswag (macro_f1) | 0.42651 | 0.391038 | 0.386523 |
| kobest_sentineg (macro_f1) | 0.501351 | 0.861108 | 0.876122 |
| kohatespeech (macro_f1) | 0.252714 | 0.330103 | 0.305009 |
| kohatespeech_apeach (macro_f1) | 0.337667 | 0.536842 | 0.526639 |
| kohatespeech_gen_bias (macro_f1) | 0.124535 | 0.512855 | 0.457998 |
| korunsmile (f1) | 0.358703 | 0.330155 | 0.32824 |
| nsmc (acc) | 0.59726 | 0.75206 | 0.74702 |
| pawsx_ko (acc) | 0.5195 | 0.513 | 0.4805 |
Used Model
- Base model(weight diff๋ฅผ ๊ตฌํ๊ธฐ ์ํ ๋ฒ ์ด์ค ๋ชจ๋ธ) : meta-llama/Meta-Llama-3-8B
- Chat model(weight diff๋ฅผ ์ ๊ณตํ๋ instruction model) : meta-llama/Meta-Llama-3-8B-Instruct
- Target model(weight diff๋ฅผ ์ ์ฉํด์ instruction ํ ์ ํ๊ณ ์ ํ๋ ๋ชจ๋ธ) : beomi/Llama-3-Open-Ko-8B
- Downloads last month
- 5