Run this model with HF Jobs
Run financeRyu/yi-ko-6b-text2sql 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/financeRyu/yi-ko-6b-text2sql. 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/financeRyu/yi-ko-6b-text2sql 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/financeRyu/yi-ko-6b-text2sql. 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/financeRyu/yi-ko-6b-text2sql. 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 financeRyu/yi-ko-6b-text2sql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use financeRyu/yi-ko-6b-text2sql with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="financeRyu/yi-ko-6b-text2sql")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("financeRyu/yi-ko-6b-text2sql") model = AutoModelForCausalLM.from_pretrained("financeRyu/yi-ko-6b-text2sql", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use financeRyu/yi-ko-6b-text2sql with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "financeRyu/yi-ko-6b-text2sql" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "financeRyu/yi-ko-6b-text2sql", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/financeRyu/yi-ko-6b-text2sql
- SGLang
How to use financeRyu/yi-ko-6b-text2sql 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 "financeRyu/yi-ko-6b-text2sql" \ --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": "financeRyu/yi-ko-6b-text2sql", "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 "financeRyu/yi-ko-6b-text2sql" \ --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": "financeRyu/yi-ko-6b-text2sql", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use financeRyu/yi-ko-6b-text2sql with Docker Model Runner:
docker model run hf.co/financeRyu/yi-ko-6b-text2sql
Upload tokenizer
Browse filesFiles changed (3)
- special_tokens_map.jsonAdded+24
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+449
123456789101112131415161718192021222324{ "bos_token": { "content": "<|startoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "<|endoftext|>", "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449{ "add_bos_token": true, "add_eos_token": false, "added_tokens_decoder": { "0": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<|startoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78413": { "content": "<|sep|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false }, "78414": { "content": "<|acc|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false }, "78415": { "content": "<|rrn|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false }, "78416": { "content": "<|tel|>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false }, "78417": { "content": "γ±", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78418": { "content": "γ΄", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78419": { "content": "γ·", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78420": { "content": "γΉ", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78421": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78422": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78423": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78424": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78425": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78426": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78427": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78428": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78429": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78430": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78431": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78432": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78433": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78434": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78435": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78436": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78437": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78438": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78439": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78440": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78441": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78442": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78443": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78444": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78445": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78446": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78447": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78448": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78449": { "content": "γ
‘", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78450": { "content": "γ
’", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78451": { "content": "γ
£", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78452": { "content": "γ²", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78453": { "content": "γ³", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78454": { "content": "γ΅", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78455": { "content": "γΆ", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78456": { "content": "γΊ", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78457": { "content": "γ»", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78458": { "content": "γΌ", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78459": { "content": "γ½", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78460": { "content": "γΎ", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78461": { "content": "γΏ", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78462": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "78463": { "content": "γ
", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<|startoftext|>", "clean_up_tokenization_spaces": false, "eos_token": "<|endoftext|>", "fast": true, "legacy": true, "model_max_length": 4096, "pad_token": "<|endoftext|>", "sp_model_kwargs": {}, "tokenizer_class": "LlamaTokenizer", "unk_token": "<unk>", "use_default_system_prompt": true}special_tokens_map.jsonAdded+24
tokenizer.jsonAdded
tokenizer_config.jsonAdded+449