Image-Text-to-Text
Transformers
Safetensors
Slovenian
English
qwen3_5
multimodal
ocr
slovenian
video-text-to-text
conversational
Instructions to use cjvt/Cvetka-R1-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cjvt/Cvetka-R1-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="cjvt/Cvetka-R1-27B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("cjvt/Cvetka-R1-27B") model = AutoModelForMultimodalLM.from_pretrained("cjvt/Cvetka-R1-27B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cjvt/Cvetka-R1-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cjvt/Cvetka-R1-27B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cjvt/Cvetka-R1-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/cjvt/Cvetka-R1-27B
- SGLang
How to use cjvt/Cvetka-R1-27B 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 "cjvt/Cvetka-R1-27B" \ --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": "cjvt/Cvetka-R1-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "cjvt/Cvetka-R1-27B" \ --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": "cjvt/Cvetka-R1-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use cjvt/Cvetka-R1-27B with Docker Model Runner:
docker model run hf.co/cjvt/Cvetka-R1-27B
Download special_token_schema.json from cjvt/Cvetka-R1-27B: direct link, hf CLI and curl.
- Browser
- Download file 10.1 kB
-
https://huggingface.co/cjvt/Cvetka-R1-27B/resolve/main/special_token_schema.json
- Command line
-
hf download hf://cjvt/Cvetka-R1-27B/special_token_schema.json
-
curl -L -o special_token_schema.json https://huggingface.co/cjvt/Cvetka-R1-27B/resolve/main/special_token_schema.json
10.1 kB
| [ | |
| { | |
| "id": 0, | |
| "token": "⸢UNK⸥", | |
| "category": "micka" | |
| }, | |
| { | |
| "id": 1, | |
| "token": "⸢s⸥", | |
| "category": "micka" | |
| }, | |
| { | |
| "id": 2, | |
| "token": "⸢/s⸥", | |
| "category": "micka" | |
| }, | |
| { | |
| "id": 3, | |
| "token": "⸢|⸥", | |
| "category": "micka" | |
| }, | |
| { | |
| "id": 4, | |
| "token": "⸢p⸥", | |
| "category": "micka" | |
| }, | |
| { | |
| "id": 5, | |
| "token": "⸢/p⸥", | |
| "category": "micka" | |
| }, | |
| { | |
| "id": 6, | |
| "token": "⸢PAD⸥", | |
| "category": "micka" | |
| }, | |
| { | |
| "id": 7, | |
| "token": "⸢MSK⸥", | |
| "category": "micka" | |
| }, | |
| { | |
| "id": 8, | |
| "token": "⸢AGT⸥", | |
| "category": "micka" | |
| }, | |
| { | |
| "id": 9, | |
| "token": "⸢USR⸥", | |
| "category": "micka" | |
| }, | |
| { | |
| "id": 10, | |
| "token": "⸢SYS⸥", | |
| "category": "micka" | |
| }, | |
| { | |
| "id": 11, | |
| "token": "⸢TURN⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 12, | |
| "token": "⸢/TURN⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 13, | |
| "token": "⸢CHANNEL⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 14, | |
| "token": "⸢/CHANNEL⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 15, | |
| "token": "⸢THINK⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 16, | |
| "token": "⸢/THINK⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 17, | |
| "token": "⸢TOOL⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 18, | |
| "token": "⸢/TOOL⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 19, | |
| "token": "⸢TOOL_CALL⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 20, | |
| "token": "⸢/TOOL_CALL⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 21, | |
| "token": "⸢TOOL_RESPONSE⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 22, | |
| "token": "⸢/TOOL_RESPONSE⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 23, | |
| "token": "⸢ESC⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 24, | |
| "token": "⸢REFUSE⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 25, | |
| "token": "⸢FIM_PREFIX⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 26, | |
| "token": "⸢FIM_MIDDLE⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 27, | |
| "token": "⸢FIM_SUFFIX⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 28, | |
| "token": "⸢FIM_PAD⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 29, | |
| "token": "⸢IMAGE⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 30, | |
| "token": "⸢/IMAGE⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 31, | |
| "token": "⸢IMAGE_SOFT⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 32, | |
| "token": "⸢AUDIO⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 33, | |
| "token": "⸢/AUDIO⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 34, | |
| "token": "⸢AUDIO_SOFT⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 35, | |
| "token": "⸢VIDEO⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 36, | |
| "token": "⸢/VIDEO⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 37, | |
| "token": "⸢TIMESTAMP⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 38, | |
| "token": "⸢SPEAKER⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 39, | |
| "token": "⸢TEXT⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 40, | |
| "token": "⸢/TEXT⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 41, | |
| "token": "⸢AUDIO_PERCEPTION⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 42, | |
| "token": "⸢AUDIO_TEXT⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 43, | |
| "token": "⸢AUDIO_SENTINEL⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 44, | |
| "token": "⸢END_OF_TASK⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 45, | |
| "token": "⸢TEXT_SENTINEL⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 46, | |
| "token": "⸢AUDIO_FUTURE⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 47, | |
| "token": "⸢AUDIO_LAST⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 48, | |
| "token": "⸢QUERY⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 49, | |
| "token": "⸢PASSAGE⸥", | |
| "category": "control" | |
| }, | |
| { | |
| "id": 50, | |
| "token": "⸢LANG_sl⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 51, | |
| "token": "⸢LANG_en⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 52, | |
| "token": "⸢LANG_hr⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 53, | |
| "token": "⸢LANG_bs⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 54, | |
| "token": "⸢LANG_sr⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 55, | |
| "token": "⸢LANG_sr_Cyrl⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 56, | |
| "token": "⸢LANG_de⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 57, | |
| "token": "⸢LANG_it⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 58, | |
| "token": "⸢LANG_fr⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 59, | |
| "token": "⸢LANG_es⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 60, | |
| "token": "⸢LANG_pt⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 61, | |
| "token": "⸢LANG_ru⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 62, | |
| "token": "⸢LANG_uk⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 63, | |
| "token": "⸢LANG_pl⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 64, | |
| "token": "⸢LANG_cs⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 65, | |
| "token": "⸢LANG_sk⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 66, | |
| "token": "⸢LANG_hu⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 67, | |
| "token": "⸢LANG_mk⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 68, | |
| "token": "⸢LANG_bg⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 69, | |
| "token": "⸢LANG_mul⸥", | |
| "category": "language" | |
| }, | |
| { | |
| "id": 70, | |
| "token": "⸢DICT⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 71, | |
| "token": "⸢/DICT⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 72, | |
| "token": "⸢ENTRY⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 73, | |
| "token": "⸢/ENTRY⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 74, | |
| "token": "⸢LEMMA⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 75, | |
| "token": "⸢FORM⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 76, | |
| "token": "⸢SENSE⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 77, | |
| "token": "⸢/SENSE⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 78, | |
| "token": "⸢DEF⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 79, | |
| "token": "⸢EXAMPLE⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 80, | |
| "token": "⸢POS⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 81, | |
| "token": "⸢MSD⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 82, | |
| "token": "⸢IPA⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 83, | |
| "token": "⸢ETYM⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 84, | |
| "token": "⸢DOMAIN⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 85, | |
| "token": "⸢REGISTER⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 86, | |
| "token": "⸢SYN⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 87, | |
| "token": "⸢ANT⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 88, | |
| "token": "⸢HYPER⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 89, | |
| "token": "⸢HYPO⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 90, | |
| "token": "⸢MERO⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 91, | |
| "token": "⸢HOLO⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 92, | |
| "token": "⸢TRANSLATION⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 93, | |
| "token": "⸢SOURCE⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 94, | |
| "token": "⸢ID⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 95, | |
| "token": "⸢REL⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 96, | |
| "token": "⸢HEAD⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 97, | |
| "token": "⸢TAIL⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 98, | |
| "token": "⸢WEIGHT⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 99, | |
| "token": "⸢GLOSS⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 100, | |
| "token": "⸢USAGE⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 101, | |
| "token": "⸢COLLOCATION⸥", | |
| "category": "dictionary" | |
| }, | |
| { | |
| "id": 102, | |
| "token": "⸢MORPH⸥", | |
| "category": "task" | |
| }, | |
| { | |
| "id": 103, | |
| "token": "⸢TRANSLATE⸥", | |
| "category": "task" | |
| }, | |
| { | |
| "id": 104, | |
| "token": "⸢DEFINE⸥", | |
| "category": "task" | |
| }, | |
| { | |
| "id": 105, | |
| "token": "⸢DISAMBIGUATE⸥", | |
| "category": "task" | |
| }, | |
| { | |
| "id": 106, | |
| "token": "⸢MATH⸥", | |
| "category": "task" | |
| }, | |
| { | |
| "id": 107, | |
| "token": "⸢CODE⸥", | |
| "category": "task" | |
| }, | |
| { | |
| "id": 108, | |
| "token": "⸢JSON⸥", | |
| "category": "task" | |
| }, | |
| { | |
| "id": 109, | |
| "token": "⸢ANSWER⸥", | |
| "category": "task" | |
| }, | |
| { | |
| "id": 110, | |
| "token": "⸢CONTEXT⸥", | |
| "category": "task" | |
| }, | |
| { | |
| "id": 111, | |
| "token": "⸢SPEC1⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 112, | |
| "token": "⸢SPEC2⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 113, | |
| "token": "⸢SPEC3⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 114, | |
| "token": "⸢SPEC4⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 115, | |
| "token": "⸢SPEC5⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 116, | |
| "token": "⸢SPEC6⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 117, | |
| "token": "⸢SPEC7⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 118, | |
| "token": "⸢SPEC8⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 119, | |
| "token": "⸢SPEC9⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 120, | |
| "token": "⸢SPEC10⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 121, | |
| "token": "⸢SPEC11⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 122, | |
| "token": "⸢SPEC12⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 123, | |
| "token": "⸢SPEC13⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 124, | |
| "token": "⸢SPEC14⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 125, | |
| "token": "⸢SPEC15⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 126, | |
| "token": "⸢SPEC16⸥", | |
| "category": "reserved" | |
| }, | |
| { | |
| "id": 127, | |
| "token": "⸢SPEC17⸥", | |
| "category": "reserved" | |
| } | |
| ] |