Instructions to use dawon62/hkcode-mb-en-ko with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dawon62/hkcode-mb-en-ko with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="dawon62/hkcode-mb-en-ko")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("dawon62/hkcode-mb-en-ko") model = AutoModelForCausalLM.from_pretrained("dawon62/hkcode-mb-en-ko", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dawon62/hkcode-mb-en-ko with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dawon62/hkcode-mb-en-ko" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dawon62/hkcode-mb-en-ko", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/dawon62/hkcode-mb-en-ko
- SGLang
How to use dawon62/hkcode-mb-en-ko 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 "dawon62/hkcode-mb-en-ko" \ --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": "dawon62/hkcode-mb-en-ko", "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 "dawon62/hkcode-mb-en-ko" \ --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": "dawon62/hkcode-mb-en-ko", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use dawon62/hkcode-mb-en-ko with Docker Model Runner:
docker model run hf.co/dawon62/hkcode-mb-en-ko
Download tokenizer.json from dawon62/hkcode-mb-en-ko: direct link, hf CLI and curl.
- Browser
- Download file 17.1 MB
-
https://huggingface.co/dawon62/hkcode-mb-en-ko/resolve/main/tokenizer.json
- Command line
-
hf download hf://dawon62/hkcode-mb-en-ko/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/dawon62/hkcode-mb-en-ko/resolve/main/tokenizer.json
17.1 MB
- Xet hash:
- 992d9569e72e784255ed530584127df3e93123b8b7b7f2ef7755dd4ded502535
- Size of remote file:
- 17.1 MB
- SHA256:
- 9f3792dca0e5c175cd163ca02f0957e5dfa0de11ace1a50a3d1f8913d58c6093
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.