Run this model with HF Jobs
Run minpeter/tiny-ko-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/minpeter/tiny-ko-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/minpeter/tiny-ko-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/minpeter/tiny-ko-base. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/minpeter/tiny-ko-base. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use minpeter/tiny-ko-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minpeter/tiny-ko-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="minpeter/tiny-ko-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("minpeter/tiny-ko-base") model = AutoModelForCausalLM.from_pretrained("minpeter/tiny-ko-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use minpeter/tiny-ko-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "minpeter/tiny-ko-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "minpeter/tiny-ko-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/minpeter/tiny-ko-base
- SGLang
How to use minpeter/tiny-ko-base 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 "minpeter/tiny-ko-base" \ --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": "minpeter/tiny-ko-base", "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 "minpeter/tiny-ko-base" \ --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": "minpeter/tiny-ko-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use minpeter/tiny-ko-base with Docker Model Runner:
docker model run hf.co/minpeter/tiny-ko-base
Rollback
Browse filesFiles changed (5)
- config.json+16-14
- model.safetensors+2-2
- tokenizer.json+2-2
- tokenizer_config.json+37-37
- training_args.bin+1-1
3 unmodified lines456789789101112131411121314151617171819201819202122222324252426272829302931323 unmodified lines ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 1, "eos_token_id": 32001, "head_dim": 32, "bos_token_id": 0, "eos_token_id": 3, "head_dim": 64, "hidden_act": "silu", "hidden_size": 256, "initializer_range": 0.02, "intermediate_size": 1024, "max_position_embeddings": 8192, "hidden_size": 576, "initializer_range": 0.041666666666666664, "intermediate_size": 1536, "is_llama_config": true, "max_position_embeddings": 4096, "mlp_bias": false, "model_type": "llama", "num_attention_heads": 8, "num_hidden_layers": 12, "num_key_value_heads": 2, "pad_token_id": 32003, "num_attention_heads": 9, "num_hidden_layers": 30, "num_key_value_heads": 3, "pad_token_id": 1, "pretraining_tp": 1, "rms_norm_eps": 1e-06, "rms_norm_eps": 1e-05, "rope_interleaved": false, "rope_scaling": null, "rope_theta": 10000.0, "rope_theta": 100000, "tie_word_embeddings": true, "torch_dtype": "float32", "transformers_version": "4.52.4", "use_cache": true, "vocab_size": 32018 "vocab_size": 32000}12323version https://git-lfs.github.com/spec/v1oid sha256:d9e511a89a68110f896a7373f812fd6041629cc471887aabcda85447c7031f28size 78437072oid sha256:aaaf5bd62a28c1e2ea35ce725cd2e608c582aac986ca5bba4639e77aa9701515size 49857216812323version https://git-lfs.github.com/spec/v1oid sha256:0f24e35414c22e483b892df074f22186bcbfd1b1c1f183ef4c8f4990f826ff30size 2869924oid sha256:a36c3ff5b839a44b064837a12b832e61cab245c31d1618d03c85d1314cc07911size 28464391234345678910111211121314151617181920192021222324252627282728293031323334353536373839404141424343444546474849495051515253545556575758595960616263646565666768676869707172737475767576777879808182838483848586878889909192919293949596979899100991001011021031041051061071081071081091101111121131141151161151161171181191201211221231241231241251261271281291301311321311321331341351361371381391401391401411421434 unmodified lines148149150151151152153154{ "added_tokens_decoder": { "32000": { "content": "<|im_start|>", "0": { "content": "<|unk_token|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32001": { "content": "<|im_end|>", "1": { "content": "<|pad_token|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32002": { "content": "<|unk_token|>", "2": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32003": { "content": "<|pad_token|>", "3": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32004": { "4": { "content": "<tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false "special": true }, "32005": { "5": { "content": "</tool_call>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false "special": true }, "32006": { "6": { "content": "<think>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false "special": true }, "32007": { "7": { "content": "</think>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false "special": true }, "32008": { "content": "<|unused_special_token_0|>", "8": { "content": "<|unused_token_0|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32009": { "content": "<|unused_special_token_1|>", "9": { "content": "<|unused_token_1|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32010": { "content": "<|unused_special_token_2|>", "10": { "content": "<|unused_token_2|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32011": { "content": "<|unused_special_token_3|>", "11": { "content": "<|unused_token_3|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32012": { "content": "<|unused_special_token_4|>", "12": { "content": "<|unused_token_4|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32013": { "content": "<|unused_special_token_5|>", "13": { "content": "<|unused_token_5|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32014": { "content": "<|unused_special_token_6|>", "14": { "content": "<|unused_token_6|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32015": { "content": "<|unused_special_token_7|>", "15": { "content": "<|unused_token_7|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32016": { "content": "<|unused_special_token_8|>", "16": { "content": "<|unused_token_8|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32017": { "content": "<|unused_special_token_9|>", "17": { "content": "<|unused_token_9|>", "lstrip": false, "normalized": false, "rstrip": false,4 unmodified lines "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "extra_special_tokens": {}, "model_max_length": 4096, "model_max_length": 1000000000000000019884624838656, "pad_token": "<|pad_token|>", "tokenizer_class": "PreTrainedTokenizer", "unk_token": "<|unk_token|>"1223version https://git-lfs.github.com/spec/v1oid sha256:5b9edc82518a3363d37477942c413c134ab6b8f4032a4f60942c01d82a0577efoid sha256:02a35e277ab5aa892680510168973e0c935efdcd186a619b19b5aaf90d144b98size 5713config.json+16-14
model.safetensors+2-2
tokenizer.json+2-2
tokenizer_config.json+37-37
training_args.bin+1-1