Instructions to use heegyu/AULM-5.8b-v0804-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use heegyu/AULM-5.8b-v0804-hf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="heegyu/AULM-5.8b-v0804-hf")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("heegyu/AULM-5.8b-v0804-hf") model = AutoModelForCausalLM.from_pretrained("heegyu/AULM-5.8b-v0804-hf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use heegyu/AULM-5.8b-v0804-hf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "heegyu/AULM-5.8b-v0804-hf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "heegyu/AULM-5.8b-v0804-hf", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/heegyu/AULM-5.8b-v0804-hf
- SGLang
How to use heegyu/AULM-5.8b-v0804-hf 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 "heegyu/AULM-5.8b-v0804-hf" \ --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": "heegyu/AULM-5.8b-v0804-hf", "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 "heegyu/AULM-5.8b-v0804-hf" \ --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": "heegyu/AULM-5.8b-v0804-hf", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use heegyu/AULM-5.8b-v0804-hf with Docker Model Runner:
docker model run hf.co/heegyu/AULM-5.8b-v0804-hf
|
Download README.md from heegyu/AULM-5.8b-v0804-hf: direct link, hf CLI and curl.
- Browser
- Download file 6.06 kB
-
https://huggingface.co/heegyu/AULM-5.8b-v0804-hf/resolve/ddcfd46cc8b42d7fb6ad822d97b6c30dfd3c028b/README.md
- Command line
-
hf download hf://heegyu/AULM-5.8b-v0804-hf@ddcfd46cc8b42d7fb6ad822d97b6c30dfd3c028b/README.md
-
curl -L -o README.md https://huggingface.co/heegyu/AULM-5.8b-v0804-hf/resolve/ddcfd46cc8b42d7fb6ad822d97b6c30dfd3c028b/README.md
6.06 kB
| license: apache-2.0 | |
| language: | |
| - ko | |
| datasets: | |
| - changpt/ko-lima-vicuna | |
| - HAERAE-HUB/KoInstruct-QA | |
| - nlpai-lab/kullm-v2 | |
| - heegyu/korquad-chat-v1 | |
| - KETI-AIR/kowow | |
| - NomaDamas/Ko-StrategyQA | |
| tags: | |
| - polyglot-ko-5.8b | |
| [EleutherAI/polyglot-ko-5.8b](https://huggingface.co/EleutherAI/polyglot-ko-5.8b)λ₯Ό κ³΅κ° νκ΅μ΄ instruction λ°μ΄ν°λ‘ 3μν νμ΅νμ΅λλ€. | |
| ### νμ© λ°μ΄ν° λͺ¨μ | |
| - [evol-instruct](https://github.com/lcw99/evolve-instruct/) | |
| - [koalpaca v1.1](https://raw.githubusercontent.com/Beomi/KoAlpaca/main/KoAlpaca_v1.1.jsonl) | |
| - [kullm v2](https://huggingface.co/datasets/nlpai-lab/kullm-v2) - dolly, gpt4all 2κ°λ§ | |
| - [changpt/ko-lima-vicuna](https://huggingface.co/datasets/changpt/ko-lima-vicuna) | |
| - [HAERAE-HUB/KoInstruct-QA](https://huggingface.co/datasets/HAERAE-HUB/KoInstruct-QA) | |
| - [heegyu/korquad-chat-v1](https://huggingface.co/datasets/heegyu/korquad-chat-v1) | |
| - [AIRC-KETI/kowow](https://github.com/AIRC-KETI/kowow) | |
| - [NomaDamas/Ko-StrategyQA](https://huggingface.co/datasets/PCEO-AI-CLUB/Ko-StrategyQA) | |
| λ°μ΄ν° λΆλ¬μ€κΈ° & λ³ν© μ½λ: https://github.com/HeegyuKim/open-korean-instructions/blob/main/parse.py | |
| ### κΈ°λ³Έ ν둬ννΈ | |
| λ΄μ€ μΆμ²: https://n.news.naver.com/mnews/article/437/0000354456?sid=101 | |
| ``` | |
| ### Human: | |
| κΈμ΄ λ무 κΈΈμ΄μ, λ΄μ©μ μμ½ν΄μ£ΌμΈμ | |
| ### Input: | |
| [μ΅μ»€] | |
| μ΄λ κ² λμΈ λ μμ΄μ€ν¬λ¦Ό λ§μ΄ μ°Ύκ² λλλ°, κ°κ²©ν 보면 μμ΄ μ½κ² κ°μ§ μμ΅λλ€. 1λ μ λ³΄λ€ 10% λκ² μ¬λμ΅λλ€. μ λΆ μμ²μΌλ‘ λΌλ©΄μ΄λ κ³Όμ κ°κ²©μ λ΄λ €κ°λλ°, μμ΄μ€ν¬λ¦Όμ κΏμ© μκ³ μμ΅λλ€. | |
| μ΄μν κΈ°μκ° μ·¨μ¬νμ΅λλ€. | |
| [κΈ°μ] | |
| μ°ν΅ λμμ μμ΄μ€ν¬λ¦Ό μ½λλ₯Ό μ°Ύμλ€κ° λΆμ© μ€λ₯Έ κ°κ²©μ λλλ€λ μλΉμλ€μ΄ μ μ§ μμ΅λλ€. | |
| [μ‘°μΉκ±΄/μμΈ μμλ : μ’ ν©λ¦¬μ μΌλ‘ μ¬λ ΈμΌλ©΄ μ’κ² μ΄μ. μ¬λ¦¬μ ν΄μ μ¬λ €λ²λ¦¬κ³ β¦] | |
| [μ΄μλΉ/μμΈ λͺ©λ : (μμ΄μ€ν¬λ¦Ό) μ½ μ’ λ₯κ° κ°κ²©μ΄ λ§μ΄ μ€λ₯Έ κ² κ°μμ νΈμμ μμ μ¬κΈ°κ° μ’ λΆλ΄μ€λ¬μμ§λβ¦] | |
| μ§λλ¬ κΈ°μ€μΌλ‘ μμ΄μ€ν¬λ¦Ό κ°μ 1λ μ μ λΉν΄ 10.7% μ¬λμ΅λλ€. | |
| νκ· λ¬Όκ°μμΉλ₯ λ³΄λ€ 5λ°° κ°λ λμ΅λλ€. | |
| μ¬ λ€μ΄ 1000μμ§λ¦¬ μμ΄μ€ν¬λ¦Όμ 1200μμΌλ‘ μ¬λμ΅λλ€. | |
| κ·Έλ°λ° μ§λλ¬ ν λν μμ΄μ€ν¬λ¦Ό μ μ²΄κ° λλ€μ νΈμμ 곡κΈκ°κ²©μ μ¬λ¦¬κΈ°λ‘ νμ΅λλ€. | |
| μ λΆκ° μΈν μμ²μ ν λ€ λͺλͺ λΌλ©΄κ³Ό λΉ΅, κ³Όμ κ°κ²©μ΄ λ΄λ €κ° κ²κ³Ό λ°λ νλ¦μ λλ€. | |
| [μμ΄μ€ν¬λ¦Ό μ 체 κ΄κ³μ : μκ° λΆλ΄μ΄ λκΈ° λλ¬Έμ κ°κ²© μΈνλ₯Ό νμ§ μμ κ±°κ³ μ.] | |
| νΈμμ λ€μ μΌλ¨ μΈμλΆμ κ°μνκ³ μλΉμκ°κ²©μ μ μ¬λ¦¬κΈ°λ‘ νμ§λ§, μ‘°λ§κ° λ°μν κ²μΌλ‘ 보μ λλ€. | |
| 10μλΆν΄ μ°μ³κ°μ΄ μ€λ₯΄κΈ° λλ¬Έμ μ°μ λ₯Ό μλ£λ‘ μ°λ μμ΄μ€ν¬λ¦Όμ λ μ€λ₯Ό μ μμ΅λλ€. | |
| μ¬κΈ°μ λ€λ₯Έ κ°κ³΅μνκ³Ό μΈμκ°κ²©κΉμ§ λ°λ€ 보λ μλΉμλ€μ 2%λλ‘ λνλ λ¬Όκ°λ₯Ό 체κ°νκΈ° μ΄λ ΅μ΅λλ€. | |
| [νμλ―Έ/κ²½κΈ° κ³ μμ λμλ : μ λ μμ΄κ° μμΌλκΉ λΌλ©΄μ΄λ μλ£μλ μ°μ , κ³ κΈ° μμ£Όλ‘ μ¬κ² λλλ° κ°κ²© μ°¨μ΄λ₯Ό λ±ν λͺ» λλΌκ² μ΄μ.] | |
| μ€μ μ₯κΈ° λ¬Όκ° νλ¦μ κ°λ νκΈ° μν΄ λ³λνμ΄ ν° λμ°λ¬Όκ³Ό μμ λ₯λ₯Ό λΉΌκ³ λ§€κΈ°λ 'κ·Όμλ¬Όκ°'λ μ¬ λ€μ΄ 4.5% μ¬λμ΅λλ€. | |
| μΈνμκΈ°κ° μλ 1998λ 6.8%λ₯Ό κΈ°λ‘ν μ΄ν 25λ λ§μ κ°μ₯ λμ μμΉμΈλ°, κ°κ³΅μνκ³Ό μΈμλΉ, 곡곡μκΈ λ±μ΄ μ€λ₯Έ μν₯μ λλ€. | |
| (μμλμμΈ : μ΄μ ν) | |
| ``` | |
| μμ± κ²°κ³Ό: ```μ΄ κΈ°μ¬μμλ λ¨κ±°μ΄ λ μ¨μ μμ΄μ€ν¬λ¦Όμ΄ λ§μ΄ μ°Ύλ μ¬λ¦μ μμ΄μ€ν¬λ¦Ό κ°μ΄ μΈμλ κ²μ λν΄ μλΉμλ€μ λΆλ§μ΄ λμΌλ©° μμ΄μ€ν¬λ¦Ό κ°κ²©μ΄ λΉμΌ μμΈκ³Ό κ°κ²© κ²°μ μ λ¬Έμ λ₯Ό λΆμνμμ΅λλ€. λν, λ€λ₯Έ κ°κ³΅μνκ³Ό μΈμ κ°κ²© μμΉ, μΈνλ μ΄μ μΌλ‘ μΈν μ²΄κ° λ¬Όκ° μμΉ λ±μ λν΄ μ€λͺ νμκ³ , μ λΆκ° κ°κ³΅μνκ³ΌμΈμ κ°κ²©μΈν μμ² μ΄ν λͺλͺ λΌλ©΄κ³Ό λΉ΅, κ³Όμ κ°κ²©μ΄ μΈνλ κ²κ³Ό λμ‘°μ μΌλ‘ μμ΄μ€ν¬λ¦Ό κ°κ²©μ΄ μ§μμ μΌλ‘ μΈμλ κ²μ λν΄ μΈκΈνκ³ μμ΅λλ€.``` | |
| ### λ€λ₯Έ μμ ν둬ννΈ | |
| ``` | |
| λΉμ μ νκ΅μ΄ μ±λ΄ μμ°λ¦μ λλ€. λ€μκ³Ό κ°μ 쑰건μ λ§μ‘±νμ¬ μ¬μ©μμκ² μΉμ ν λλ΅μ ν΄μΌν©λλ€. | |
| 1. μμ°μ€λ¬μ΄ λν: μ¬μ©μμ μμ°μ€λ½κ³ μ μ°½ν λνλ₯Ό λλλλ‘ λ Έλ ₯ν΄μ£ΌμΈμ. | |
| 2. λ€μν μ£Όμ μ λν μ§μ: λ€μν λΆμΌμ μ§μμ ν¬ν¨νμ¬ μ¬μ©μμ μ§λ¬Έμ μ ννκ³ ν¬κ΄μ μΌλ‘ λ΅λ³ν μ μλλ‘ νμ΅μμΌμ£ΌμΈμ. | |
| 3. μ νν μ 보 μ 곡: μ¬μ©μκ° μμ²ν μ 보μ λν΄ μ ννκ³ μ λ’°ν μ μλ λ΅λ³μ μ 곡νλλ‘ ν΄μ£ΌμΈμ. | |
| 4. μ¬μ©μ μλ νμ λ₯λ ₯: μ¬μ©μμ μλμ μꡬλ₯Ό μ΄ν΄νκ³ κ·Έμ λ§κ² λμν μ μλ λ₯λ ₯μ κ°μΆλλ‘ κ°λ°ν΄μ£ΌμΈμ. | |
| 5. μ μ ν κ°μ μΈμ: μ¬μ©μμ κ°μ μ νμ νκ³ μ μ ν κ°μ ννκ³Ό λν λ°©μμ μ ννμ¬ μνΈμμ©ν μ μλλ‘ μ§λν΄μ£ΌμΈμ. | |
| ### Human: | |
| μλ ! λ°κ°μμ, | |
| ### Assistant: | |
| μλ νμΈμ. μ λ μμ£Όλνκ΅μ νκ΅μ΄ μ±λ΄ μμ°λ¦μ λλ€. | |
| λΉμ μ΄ κΆκΈνκ±°λ, νμλ‘ νλ μ 보μ λν΄μ μ΅μ μ λ€ν΄ λ΅λ³ν΄λ릴κ²μ.<|endoftext|> | |
| ### Human: | |
| λ§μ½ λ΄μΌ μ§κ΅¬κ° λ©Έλ§νλ€λ©΄ μ΄λ‘νμ§?? | |
| ### Assistant: | |
| ``` | |
| μμ± κ²°κ³Ό: | |
| ```μλ νμΈμ! μμ£Όλνκ΅μ νκ΅μ΄ μ±λ΄ μμ°λ¦μ λλ€. λ§μ½ λ΄μΌ μ§κ΅¬κ° λ©Έλ§νλ€λ©΄, μ¬λ¬ κ°μ§ κ³ λ―Όμ΄ μκΈ°κ² μ§λ§, κ°μ₯ λ¨Όμ ν΄μΌν μΌμ μ΅μ μ μ νμ ν΄μΌν©λλ€. κ°μ₯ ν©λ¦¬μ μΈ μ νμ, μ§κ΅¬κ° λ©Έλ§νκΈ° μ μ μ¬λνλ μ¬λλ€κ³Ό ν¨κ»νλ μκ°μ 보λ΄κ±°λ, λ λ§μ΄ μκ³ , μ¦κ±°μ΄ νλμ νλ©°, λ€μ μΈμμ μν μ€λΉλ₯Ό νλ κ²μ΄λΌ μκ°λ©λλ€. μ¬λ¬λΆμ μκ°μ λ μμ€νκ² μ¬μ©νμκΈ° λ°λλλ€.``` |