Text Generation
Transformers
Safetensors
English
Korean
llama
conversational
text-generation-inference
Instructions to use Bllossom/llama-3.2-Korean-Bllossom-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Bllossom/llama-3.2-Korean-Bllossom-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Bllossom/llama-3.2-Korean-Bllossom-3B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Bllossom/llama-3.2-Korean-Bllossom-3B") model = AutoModelForMultimodalLM.from_pretrained("Bllossom/llama-3.2-Korean-Bllossom-3B") 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Bllossom/llama-3.2-Korean-Bllossom-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Bllossom/llama-3.2-Korean-Bllossom-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Bllossom/llama-3.2-Korean-Bllossom-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Bllossom/llama-3.2-Korean-Bllossom-3B
- SGLang
How to use Bllossom/llama-3.2-Korean-Bllossom-3B 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 "Bllossom/llama-3.2-Korean-Bllossom-3B" \ --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": "Bllossom/llama-3.2-Korean-Bllossom-3B", "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 "Bllossom/llama-3.2-Korean-Bllossom-3B" \ --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": "Bllossom/llama-3.2-Korean-Bllossom-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Bllossom/llama-3.2-Korean-Bllossom-3B with Docker Model Runner:
docker model run hf.co/Bllossom/llama-3.2-Korean-Bllossom-3B
add AIBOM
#15 opened about 1 year ago
by
RiccardoDav
튜닝 가능할까요?
1
#14 opened about 1 year ago
by
timo4992
하얀 배경에 검정색 원 하나 있는 그림을 분석 요청했는데...
1
#13 opened over 1 year ago
by
harry217
DeepSeek 모델 출시 여부
1
#12 opened over 1 year ago
by
chadpeterlee
Bllossom/llama-3.2-Korean-Bllossom-3B 상업적 이용 관련 문의
1
#11 opened over 1 year ago
by
hugggin
Bllossom-AICA-3B 모델은 어떻게 받을 수 있을까요?
1
#10 opened over 1 year ago
by
babeqman
vLLM에서 사용하려면 어떤 파라메터들을 추가해야 할까요?
1
#9 opened over 1 year ago
by
jioo0224
vocab 및 tokenizer 관련 질문이 있습니다!
#8 opened over 1 year ago
by
scj0709
bos 토크나이저에 대해 궁급한게 있습니다
1
#7 opened over 1 year ago
by
gravy0106
Ollama 어떻게 하나요?
❤️ 2
1
#6 opened over 1 year ago
by
hellostevehaha
Vocab size 문의
1
#5 opened over 1 year ago
by
jinhyeong
token size?
1
#4 opened over 1 year ago
by
LeeJH77
모델 성능 이슈
2
#3 opened over 1 year ago
by
DimensionSTP
Tokenizer load error
👍 1
1
#2 opened over 1 year ago
by
kwanwoo02
ollama용으로도 공유해주시면 좋겠습니다.
3
#1 opened over 1 year ago
by
NHJ