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 tokenizer_config.json from cjvt/Cvetka-R1-27B: direct link, hf CLI and curl.
- Browser
- Download file 2.88 kB
-
https://huggingface.co/cjvt/Cvetka-R1-27B/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://cjvt/Cvetka-R1-27B/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/cjvt/Cvetka-R1-27B/resolve/main/tokenizer_config.json
2.88 kB
| { | |
| "backend": "tokenizers", | |
| "bos_token": "⸢s⸥", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "⸢/s⸥", | |
| "mask_token": "⸢MSK⸥", | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_token": "⸢PAD⸥", | |
| "padding_side": "left", | |
| "tokenizer_class": "PreTrainedTokenizerFast", | |
| "unk_token": "⸢UNK⸥", | |
| "additional_special_tokens": [ | |
| "⸢|⸥", | |
| "⸢p⸥", | |
| "⸢/p⸥", | |
| "⸢AGT⸥", | |
| "⸢USR⸥", | |
| "⸢SYS⸥", | |
| "⸢TURN⸥", | |
| "⸢/TURN⸥", | |
| "⸢CHANNEL⸥", | |
| "⸢/CHANNEL⸥", | |
| "⸢THINK⸥", | |
| "⸢/THINK⸥", | |
| "⸢TOOL⸥", | |
| "⸢/TOOL⸥", | |
| "⸢TOOL_CALL⸥", | |
| "⸢/TOOL_CALL⸥", | |
| "⸢TOOL_RESPONSE⸥", | |
| "⸢/TOOL_RESPONSE⸥", | |
| "⸢ESC⸥", | |
| "⸢REFUSE⸥", | |
| "⸢FIM_PREFIX⸥", | |
| "⸢FIM_MIDDLE⸥", | |
| "⸢FIM_SUFFIX⸥", | |
| "⸢FIM_PAD⸥", | |
| "⸢IMAGE⸥", | |
| "⸢/IMAGE⸥", | |
| "⸢IMAGE_SOFT⸥", | |
| "⸢AUDIO⸥", | |
| "⸢/AUDIO⸥", | |
| "⸢AUDIO_SOFT⸥", | |
| "⸢VIDEO⸥", | |
| "⸢/VIDEO⸥", | |
| "⸢TIMESTAMP⸥", | |
| "⸢SPEAKER⸥", | |
| "⸢TEXT⸥", | |
| "⸢/TEXT⸥", | |
| "⸢AUDIO_PERCEPTION⸥", | |
| "⸢AUDIO_TEXT⸥", | |
| "⸢AUDIO_SENTINEL⸥", | |
| "⸢END_OF_TASK⸥", | |
| "⸢TEXT_SENTINEL⸥", | |
| "⸢AUDIO_FUTURE⸥", | |
| "⸢AUDIO_LAST⸥", | |
| "⸢QUERY⸥", | |
| "⸢PASSAGE⸥", | |
| "⸢LANG_sl⸥", | |
| "⸢LANG_en⸥", | |
| "⸢LANG_hr⸥", | |
| "⸢LANG_bs⸥", | |
| "⸢LANG_sr⸥", | |
| "⸢LANG_sr_Cyrl⸥", | |
| "⸢LANG_de⸥", | |
| "⸢LANG_it⸥", | |
| "⸢LANG_fr⸥", | |
| "⸢LANG_es⸥", | |
| "⸢LANG_pt⸥", | |
| "⸢LANG_ru⸥", | |
| "⸢LANG_uk⸥", | |
| "⸢LANG_pl⸥", | |
| "⸢LANG_cs⸥", | |
| "⸢LANG_sk⸥", | |
| "⸢LANG_hu⸥", | |
| "⸢LANG_mk⸥", | |
| "⸢LANG_bg⸥", | |
| "⸢LANG_mul⸥", | |
| "⸢DICT⸥", | |
| "⸢/DICT⸥", | |
| "⸢ENTRY⸥", | |
| "⸢/ENTRY⸥", | |
| "⸢LEMMA⸥", | |
| "⸢FORM⸥", | |
| "⸢SENSE⸥", | |
| "⸢/SENSE⸥", | |
| "⸢DEF⸥", | |
| "⸢EXAMPLE⸥", | |
| "⸢POS⸥", | |
| "⸢MSD⸥", | |
| "⸢IPA⸥", | |
| "⸢ETYM⸥", | |
| "⸢DOMAIN⸥", | |
| "⸢REGISTER⸥", | |
| "⸢SYN⸥", | |
| "⸢ANT⸥", | |
| "⸢HYPER⸥", | |
| "⸢HYPO⸥", | |
| "⸢MERO⸥", | |
| "⸢HOLO⸥", | |
| "⸢TRANSLATION⸥", | |
| "⸢SOURCE⸥", | |
| "⸢ID⸥", | |
| "⸢REL⸥", | |
| "⸢HEAD⸥", | |
| "⸢TAIL⸥", | |
| "⸢WEIGHT⸥", | |
| "⸢GLOSS⸥", | |
| "⸢USAGE⸥", | |
| "⸢COLLOCATION⸥", | |
| "⸢MORPH⸥", | |
| "⸢TRANSLATE⸥", | |
| "⸢DEFINE⸥", | |
| "⸢DISAMBIGUATE⸥", | |
| "⸢MATH⸥", | |
| "⸢CODE⸥", | |
| "⸢JSON⸥", | |
| "⸢ANSWER⸥", | |
| "⸢CONTEXT⸥", | |
| "⸢SPEC1⸥", | |
| "⸢SPEC2⸥", | |
| "⸢SPEC3⸥", | |
| "⸢SPEC4⸥", | |
| "⸢SPEC5⸥", | |
| "⸢SPEC6⸥", | |
| "⸢SPEC7⸥", | |
| "⸢SPEC8⸥", | |
| "⸢SPEC9⸥", | |
| "⸢SPEC10⸥", | |
| "⸢SPEC11⸥", | |
| "⸢SPEC12⸥", | |
| "⸢SPEC13⸥", | |
| "⸢SPEC14⸥", | |
| "⸢SPEC15⸥", | |
| "⸢SPEC16⸥", | |
| "⸢SPEC17⸥" | |
| ] | |
| } | |