Text Generation
Transformers
Safetensors
PyTorch
English
Korean
llama
facebook
meta
llama-3
llama-3-ko
conversational
text-generation-inference
Instructions to use beomi/Llama-3-Open-Ko-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use beomi/Llama-3-Open-Ko-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="beomi/Llama-3-Open-Ko-8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("beomi/Llama-3-Open-Ko-8B") model = AutoModelForCausalLM.from_pretrained("beomi/Llama-3-Open-Ko-8B", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use beomi/Llama-3-Open-Ko-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "beomi/Llama-3-Open-Ko-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "beomi/Llama-3-Open-Ko-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/beomi/Llama-3-Open-Ko-8B
- SGLang
How to use beomi/Llama-3-Open-Ko-8B 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 "beomi/Llama-3-Open-Ko-8B" \ --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": "beomi/Llama-3-Open-Ko-8B", "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 "beomi/Llama-3-Open-Ko-8B" \ --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": "beomi/Llama-3-Open-Ko-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use beomi/Llama-3-Open-Ko-8B with Docker Model Runner:
docker model run hf.co/beomi/Llama-3-Open-Ko-8B
LLM 모델의 라이선스 정책에 대해서 문의 드립니다.
#6
by KaiLee76 - opened
안녕하세요. KT DS에 이광용 차장이라고 합니다.
해당 LLM 모델(Llama-3-Open-Ko-8B, Open Llama-2-ko-7b)의 라이선스 정책에 대해서 아래와 같이 문의 드립니다.
- 당사가 해당 LLM 모델을 수정 후 비즈니스에 활용 또는 유료화에 제약사항이 있는지 여부
- 당사가 해당 LLM 모델을 포함하여 모델간 병합을 통한 신규 모델 생성시 비즈니스에 활용 또는 유료화에 제약사항이 있는지 여부
- 기타 해당 LLM 모델의 라이선스 정책이 있는지 여부
번거로우시겠지만, 답변 부탁 드리겠습니다.
감사합니다.
안녕하세요.
Open-Ko 시리즈의 경우는 기본llama3 라이센스로 존재합니다. 따라서, Llama3 커뮤니티 라이센스만 따라주시면 별도 제약이 존재하지 않습니다.
즉, 1/2/3 모두 Llama3 라이센스를 제외하면, 오픈소스 사용 기재 의무 외의 제약이 없습니다.
beomi changed discussion status to closed
답변 감사합니다.~