Image-Text-to-Text
Transformers
Safetensors
isaac
text-generation
perceptron
issac-0.1
conversational
custom_code
Run this model with HF Jobs
Run PerceptronAI/Isaac-0.1 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/PerceptronAI/Isaac-0.1. 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/PerceptronAI/Isaac-0.1 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/PerceptronAI/Isaac-0.1. 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/PerceptronAI/Isaac-0.1. 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 PerceptronAI/Isaac-0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PerceptronAI/Isaac-0.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="PerceptronAI/Isaac-0.1", trust_remote_code=True) 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 AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("PerceptronAI/Isaac-0.1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PerceptronAI/Isaac-0.1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PerceptronAI/Isaac-0.1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PerceptronAI/Isaac-0.1", "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/PerceptronAI/Isaac-0.1
- SGLang
How to use PerceptronAI/Isaac-0.1 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 "PerceptronAI/Isaac-0.1" \ --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": "PerceptronAI/Isaac-0.1", "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 "PerceptronAI/Isaac-0.1" \ --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": "PerceptronAI/Isaac-0.1", "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 PerceptronAI/Isaac-0.1 with Docker Model Runner:
docker model run hf.co/PerceptronAI/Isaac-0.1
Upload folder using huggingface_hub
Browse filesFiles changed (8)
- chat_template.jinjaAdded+89
- config.json+35-6
- generation_config.json+1-1
- model.safetensors.index.json+1
- modular_isaac.py+169-8
- processor_config.jsonAdded+209
- tokenizer.json+2-2
- tokenizer_config.json+4-2
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages[0].role == 'system' %} {{- messages[0].content + '\n\n' }} {%- endif %} {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson }} {%- endfor %} {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}{%- else %} {%- if messages[0].role == 'system' %} {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }} {%- endif %}{%- endif %}{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}{%- for message in messages[::-1] %} {%- set index = (messages|length - 1) - loop.index0 %} {%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %} {%- set ns.multi_step_tool = false %} {%- set ns.last_query_index = index %} {%- endif %}{%- endfor %}{%- for message in messages %} {%- if message.content is string %} {%- set content = message.content %} {%- else %} {%- set content = '' %} {%- endif %} {%- if (message.role == "user") or (message.role == "system" and not loop.first) %} {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {%- set reasoning_content = '' %} {%- if message.reasoning_content is string %} {%- set reasoning_content = message.reasoning_content %} {%- else %} {%- if '</think>' in content %} {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %} {%- set content = content.split('</think>')[-1].lstrip('\n') %} {%- endif %} {%- endif %} {%- if loop.index0 > ns.last_query_index %} {%- if loop.last or (not loop.last and reasoning_content) %} {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }} {%- else %} {{- '<|im_start|>' + message.role + '\n' + content }} {%- endif %} {%- else %} {{- '<|im_start|>' + message.role + '\n' + content }} {%- endif %} {%- if message.tool_calls %} {%- for tool_call in message.tool_calls %} {%- if (loop.first and content) or (not loop.first) %} {{- '\n' }} {%- endif %} {%- if tool_call.function %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '<tool_call>\n{"name": "' }} {{- tool_call.name }} {{- '", "arguments": ' }} {%- if tool_call.arguments is string %} {{- tool_call.arguments }} {%- else %} {{- tool_call.arguments | tojson }} {%- endif %} {{- '}\n</tool_call>' }} {%- endfor %} {%- endif %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- content }} {{- '\n</tool_response>' }} {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} {{- '<|im_end|>\n' }} {%- endif %} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }} {%- if enable_thinking is defined and enable_thinking is false %} {{- '<think>\n\n</think>\n\n' }} {%- endif %}{%- endif %}1 unmodified line2345678910111213141516171819202111 unmodified lines333435363738394016 unmodified lines575859601 unmodified line"architectures": ["IsaacForConditionalGeneration"],"auto_map": {"AutoProcessor": "modular_isaac.IsaacProcessor","AutoConfig": "modular_isaac.IsaacConfig","AutoModelForCausalLM": "modular_isaac.IsaacForConditionalGeneration"},"attention_bias": false,"attention_dropout": 0.0,"bos_token_id": 151643,"eos_token_id": 151645,"head_dim": 128,"hidden_act": "silu","hidden_size": 2048,"initializer_range": 0.02,"intermediate_size": 6144,"max_position_embeddings": 40960,"max_sequence_length": 16384,"max_window_layers": 28,11 unmodified lines"rope_theta": 1000000.0,"sliding_window": null,"tie_word_embeddings": false,"torch_dtype": "float32","transformers_version": "4.51.1","use_cache": true,"use_sliding_window": false,"video_patch_size": 16,16 unmodified lines"vision_min_num_patches": 256,"vision_token": "<image>","vocab_size": 151936}1 unmodified line2345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505111 unmodified lines6364656667686916 unmodified lines868788891 unmodified line"architectures": ["IsaacForConditionalGeneration"],"attention_bias": false,"attention_dropout": 0.0,"auto_map": {"AutoConfig": "modular_isaac.IsaacConfig","AutoModelForCausalLM": "modular_isaac.IsaacForConditionalGeneration"},"bos_token_id": 151643,"dtype": "float32","eos_token_id": 151645,"head_dim": 128,"hidden_act": "silu","hidden_size": 2048,"initializer_range": 0.02,"intermediate_size": 6144,"layer_types": ["full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention","full_attention"],"max_position_embeddings": 40960,"max_sequence_length": 16384,"max_window_layers": 28,11 unmodified lines"rope_theta": 1000000.0,"sliding_window": null,"tie_word_embeddings": false,"transformers_version": "4.56.1","use_cache": true,"use_sliding_window": false,"video_patch_size": 16,16 unmodified lines"vision_min_num_patches": 256,"vision_token": "<image>","vocab_size": 151936}
1 unmodified line234561 unmodified line"_from_model_config": true,"bos_token_id": 151643,"eos_token_id": 151645,"transformers_version": "4.51.1"}1 unmodified line234561 unmodified line"_from_model_config": true,"bos_token_id": 151643,"eos_token_id": 151645,"transformers_version": "4.56.1"}
12345{"metadata": {"total_size": 10268292032},"weight_map": {123456{"metadata": {"total_parameters": 2567073008,"total_size": 10268292032},"weight_map": {
13 unmodified lines14151617181920212223242526272833 unmodified lines62636465666768805 unmodified lines874875876877878879880881882883884885886887888889231 unmodified lines11211122112311241125112611271128147 unmodified lines12761277127812791280128112823 unmodified lines12861287128812891290129113 unmodified linesfrom transformers import (AutoTokenizer,BatchFeature,Qwen3Config,Qwen3ForCausalLM,Qwen3PreTrainedModel,)from transformers.generation.utils import GenerationMixinfrom transformers.modeling_outputs import BaseModelOutputWithPast, CausalLMOutputWithPastfrom transformers.models.qwen3.modeling_qwen3 import Qwen3DecoderLayer, Qwen3Modelfrom transformers.processing_utils import ProcessorMixinfrom transformers.tokenization_utils import TensorTypeimport refrom transformers.models.siglip2.modeling_siglip2 import (33 unmodified linesnum_patches: int = 256,**kwargs,):# Call parent with all vision config parameterssuper().__init__(**kwargs)# Add our custom fields805 unmodified linesclass IsaacProcessor(ProcessorMixin):attributes = []tokenizer_class = ("AutoTokenizer",)def __init__(self,tokenizer: AutoTokenizer,config: IsaacConfig,):super().__init__()self.tokenizer = tokenizerself.config = config# Use vision token from config231 unmodified linesclass IsaacModel(Qwen3Model):def __init__(self, config: IsaacConfig):super().__init__(config)self.layers = torch.nn.ModuleList([Qwen3DecoderLayer(config, layer_idx) for layer_idx in range(config.num_hidden_layers)])self.rotary_emb = IsaacRotaryEmbedding(config, device=self.device)147 unmodified lines**kwargs,)hidden_states = layer_outputs[0]# Final layer normhidden_states = self.norm(hidden_states)3 unmodified linespast_key_values=past_key_values,)class IsaacForConditionalGeneration(Qwen3ForCausalLM, GenerationMixin):"""Isaac multimodal model for conditional generation."""13 unmodified lines1415161718192021222324252627282930313233 unmodified lines666768697071805 unmodified lines877878879880881882883884885886887888889890891892893894895896231 unmodified lines112811291130113111321133113411351136147 unmodified lines12841285128612871288128912903 unmodified lines12941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145213 unmodified linesfrom transformers import (AutoTokenizer,BatchFeature,Cache,Qwen3Config,Qwen3ForCausalLM,Qwen3PreTrainedModel,)from transformers.cache_utils import SlidingWindowCache, StaticCachefrom transformers.generation.utils import GenerationMixinfrom transformers.modeling_outputs import BaseModelOutputWithPast, CausalLMOutputWithPastfrom transformers.models.qwen3.modeling_qwen3 import Qwen3DecoderLayer, Qwen3Modelfrom transformers.models.qwen2.tokenization_qwen2 import Qwen2Tokenizerfrom transformers.processing_utils import ProcessorMixinfrom transformers.tokenization_utils import TensorTypefrom transformers.modeling_attn_mask_utils import AttentionMaskConverterimport refrom transformers.models.siglip2.modeling_siglip2 import (33 unmodified linesnum_patches: int = 256,**kwargs,):super().__init__(**kwargs)# Add our custom fields805 unmodified linesclass IsaacProcessor(ProcessorMixin):attributes = ["tokenizer"]tokenizer_class = ("Qwen2Tokenizer", "Qwen2TokenizerFast")def __init__(self,tokenizer: Qwen2Tokenizer,config: IsaacConfig | dict,):super().__init__(tokenizer)self.tokenizer = tokenizerif isinstance(config, dict):config = IsaacConfig(**config)self.config = config# Use vision token from config231 unmodified linesclass IsaacModel(Qwen3Model):def __init__(self, config: IsaacConfig):super().__init__(config)text_cfg = getattr(config, "get_text_config", lambda: config)()self.layers = torch.nn.ModuleList([Qwen3DecoderLayer(text_cfg, layer_idx) for layer_idx in range(config.num_hidden_layers)])self.rotary_emb = IsaacRotaryEmbedding(config, device=self.device)147 unmodified lines**kwargs,)hidden_states = layer_outputs[0] if isinstance(layer_outputs, tuple) else layer_outputs# Final layer normhidden_states = self.norm(hidden_states)3 unmodified linespast_key_values=past_key_values,)def _update_causal_mask(self,attention_mask: torch.Tensor,input_tensor: torch.Tensor,cache_position: torch.Tensor,past_key_values: Cache,output_attentions: bool = False,):if self.config._attn_implementation == "flash_attention_2":if attention_mask is not None and past_key_values is not None:is_padding_right = attention_mask[:, -1].sum().item() != input_tensor.size()[0]if is_padding_right:raise ValueError("You are attempting to perform batched generation with padding_side='right'"" this may lead to unexpected behaviour for Flash Attention version of Qwen3. Make sure to "" call `tokenizer.padding_side = 'left'` before tokenizing the input. ")if attention_mask is not None and 0.0 in attention_mask:return attention_maskreturn None# For SDPA, when possible, we will rely on its `is_causal` argument instead of its `attn_mask` argument, in# order to dispatch on Flash Attention 2. This feature is not compatible with static cache, as SDPA will fail# to infer the attention mask.past_seen_tokens = past_key_values.get_seq_length() if past_key_values is not None else 0using_static_cache = isinstance(past_key_values, StaticCache)using_sliding_window_cache = isinstance(past_key_values, SlidingWindowCache)# When output attentions is True, sdpa implementation's forward method calls the eager implementation's forwardif (self.config._attn_implementation == "sdpa"and not (using_static_cache or using_sliding_window_cache)and not output_attentions):if AttentionMaskConverter._ignore_causal_mask_sdpa(attention_mask,inputs_embeds=input_tensor,past_key_values_length=past_seen_tokens,sliding_window=self.config.sliding_window,is_training=self.training,):return Nonedtype, device = input_tensor.dtype, input_tensor.devicemin_dtype = torch.finfo(dtype).minsequence_length = input_tensor.shape[1]# SlidingWindowCache or StaticCacheif using_sliding_window_cache or using_static_cache:target_length = past_key_values.get_max_cache_shape()# DynamicCache or no cacheelse:target_length = (attention_mask.shape[-1]if isinstance(attention_mask, torch.Tensor)else past_seen_tokens + sequence_length + 1)# In case the provided `attention` mask is 2D, we generate a causal mask here (4D).causal_mask = self._prepare_4d_causal_attention_mask_with_cache_position(attention_mask,sequence_length=sequence_length,target_length=target_length,dtype=dtype,device=device,cache_position=cache_position,batch_size=input_tensor.shape[0],config=self.config,past_key_values=past_key_values,)if (self.config._attn_implementation == "sdpa"and attention_mask is not Noneand attention_mask.device.type in ["cuda", "xpu", "npu"]and not output_attentions):# Attend to all tokens in fully masked rows in the causal_mask, for example the relevant first rows when# using left padding. This is required by F.scaled_dot_product_attention memory-efficient attention path.# Details: https://github.com/pytorch/pytorch/issues/110213causal_mask = AttentionMaskConverter._unmask_unattended(causal_mask, min_dtype)return causal_mask@staticmethoddef _prepare_4d_causal_attention_mask_with_cache_position(attention_mask: torch.Tensor,sequence_length: int,target_length: int,dtype: torch.dtype,device: torch.device,cache_position: torch.Tensor,batch_size: int,config: Qwen3Config,past_key_values: Cache,):"""Creates a causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` from a 2D mask of shape`(batch_size, key_value_length)`, or if the input `attention_mask` is already 4D, do nothing.Args:attention_mask (`torch.Tensor`):A 2D attention mask of shape `(batch_size, key_value_length)` or a 4D attention mask of shape `(batch_size, 1, query_length, key_value_length)`.sequence_length (`int`):The sequence length being processed.target_length (`int`):The target length: when generating with static cache, the mask should be as long as the static cache, to account for the 0 padding, the part of the cache that is not filled yet.dtype (`torch.dtype`):The dtype to use for the 4D attention mask.device (`torch.device`):The device to place the 4D attention mask on.cache_position (`torch.Tensor`):Indices depicting the position of the input sequence tokens in the sequence.batch_size (`torch.Tensor`):Batch size.config (`Qwen3Config`):The model's configuration classpast_key_values (`Cache`):The cache class that is being used currently to generate"""if attention_mask is not None and attention_mask.dim() == 4:# In this case we assume that the mask comes already in inverted form and requires no inversion or slicing.causal_mask = attention_maskelse:min_dtype = torch.finfo(dtype).mincausal_mask = torch.full((sequence_length, target_length), fill_value=min_dtype, dtype=dtype, device=device)diagonal_attend_mask = torch.arange(target_length, device=device) > cache_position.reshape(-1, 1)if config.sliding_window is not None:# if we have sliding window, we should not attend to tokens beyond sliding window length, so we mask them out also# the check is needed to verify is current checkpoint was trained with sliding window or notif not isinstance(past_key_values, SlidingWindowCache) or sequence_length > target_length:sliding_attend_mask = torch.arange(target_length, device=device) <= (cache_position.reshape(-1, 1) - config.sliding_window)diagonal_attend_mask.bitwise_or_(sliding_attend_mask)causal_mask *= diagonal_attend_maskcausal_mask = causal_mask[None, None, :, :].expand(batch_size, 1, -1, -1)if attention_mask is not None:causal_mask = causal_mask.clone() # copy to contiguous memory for in-place editif attention_mask.shape[-1] > target_length:attention_mask = attention_mask[:, :target_length]mask_length = attention_mask.shape[-1]padding_mask = causal_mask[:, :, :, :mask_length] + attention_mask[:, None, None, :].to(causal_mask.device)padding_mask = padding_mask == 0causal_mask[:, :, :, :mask_length] = causal_mask[:, :, :, :mask_length].masked_fill(padding_mask, min_dtype)return causal_maskclass IsaacForConditionalGeneration(Qwen3ForCausalLM, GenerationMixin):"""Isaac multimodal model for conditional generation."""
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209{ "auto_map": { "AutoProcessor": "modular_isaac.IsaacProcessor" }, "config": { "_name_or_path": "", "add_cross_attention": false, "architectures": [ "IsaacForConditionalGeneration" ], "attention_bias": false, "attention_dropout": 0.0, "auto_map": { "AutoModelForCausalLM": "modular_isaac.IsaacForConditionalGeneration" }, "bad_words_ids": null, "begin_suppress_tokens": null, "bos_token_id": 151643, "chunk_size_feed_forward": 0, "cross_attention_hidden_size": null, "decoder_start_token_id": null, "diversity_penalty": 0.0, "do_sample": false, "dtype": "float32", "early_stopping": false, "encoder_no_repeat_ngram_size": 0, "eos_token_id": 151645, "exponential_decay_length_penalty": null, "finetuning_task": null, "forced_bos_token_id": null, "forced_eos_token_id": null, "head_dim": 128, "hidden_act": "silu", "hidden_size": 2048, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "initializer_range": 0.02, "intermediate_size": 6144, "is_decoder": false, "is_encoder_decoder": false, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "layer_types": [ "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention", "full_attention" ], "length_penalty": 1.0, "max_length": 20, "max_position_embeddings": 40960, "max_sequence_length": 16384, "max_window_layers": 28, "min_length": 0, "model_type": "isaac", "no_repeat_ngram_size": 0, "num_attention_heads": 16, "num_beam_groups": 1, "num_beams": 1, "num_hidden_layers": 28, "num_key_value_heads": 8, "num_return_sequences": 1, "output_attentions": false, "output_hidden_states": false, "output_scores": false, "pad_token_id": null, "pixel_shuffle_scale": 2, "prefix": null, "problem_type": null, "pruned_heads": {}, "remove_invalid_values": false, "repetition_penalty": 1.0, "return_dict": true, "return_dict_in_generate": false, "rms_norm_eps": 1e-06, "rope_scaling": { "mrope_interleaved": true, "mrope_section": null, "rope_type": "default" }, "rope_theta": 1000000.0, "sep_token_id": null, "sliding_window": null, "suppress_tokens": null, "task_specific_params": null, "temperature": 1.0, "tf_legacy_loss": false, "tie_encoder_decoder": false, "tie_word_embeddings": false, "tokenizer_class": null, "top_k": 50, "top_p": 1.0, "torchscript": false, "transformers_version": "4.56.1", "typical_p": 1.0, "use_bfloat16": false, "use_cache": true, "use_sliding_window": false, "video_patch_size": 16, "vision_config": { "_name_or_path": "", "add_cross_attention": false, "architectures": null, "attention_dropout": 0.0, "bad_words_ids": null, "begin_suppress_tokens": null, "bos_token_id": null, "chunk_size_feed_forward": 0, "cross_attention_hidden_size": null, "decoder_start_token_id": null, "diversity_penalty": 0.0, "do_sample": false, "dtype": null, "early_stopping": false, "encoder_no_repeat_ngram_size": 0, "eos_token_id": null, "exponential_decay_length_penalty": null, "finetuning_task": null, "forced_bos_token_id": null, "forced_eos_token_id": null, "hidden_act": "gelu_pytorch_tanh", "hidden_size": 1152, "id2label": { "0": "LABEL_0", "1": "LABEL_1" }, "image_size": 256, "intermediate_size": 4304, "is_decoder": false, "is_encoder_decoder": false, "label2id": { "LABEL_0": 0, "LABEL_1": 1 }, "layer_norm_eps": 1e-06, "length_penalty": 1.0, "max_length": 20, "min_length": 0, "model_type": "pixel_shuffle_siglip2", "no_repeat_ngram_size": 0, "num_attention_heads": 16, "num_beam_groups": 1, "num_beams": 1, "num_channels": 3, "num_hidden_layers": 27, "num_patches": 256, "num_return_sequences": 1, "output_attentions": false, "output_hidden_states": false, "output_scores": false, "pad_token_id": null, "patch_size": 16, "pixel_shuffle_scale_factor": 2, "prefix": null, "problem_type": null, "pruned_heads": {}, "remove_invalid_values": false, "repetition_penalty": 1.0, "return_dict": true, "return_dict_in_generate": false, "sep_token_id": null, "suppress_tokens": null, "task_specific_params": null, "temperature": 1.0, "tf_legacy_loss": false, "tie_encoder_decoder": false, "tie_word_embeddings": true, "tokenizer_class": null, "top_k": 50, "top_p": 1.0, "torchscript": false, "typical_p": 1.0, "use_bfloat16": false }, "vision_max_num_patches": 6144, "vision_min_num_patches": 256, "vision_token": "<image>", "vocab_size": 151936 }, "processor_class": "IsaacProcessor"}123version https://git-lfs.github.com/spec/v1oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4size 11422654123version https://git-lfs.github.com/spec/v1oid sha256:7ceaf87113caa06d8b2e2f6966ab11d12ac590cb887b64c591cae70ea89245f4size 11422655
225 unmodified lines226227228229230231232233234235236237238239240225 unmodified lines"<|image_pad|>","<|video_pad|>"],"bos_token": null,"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if message.content is string %}\n {%- set content = message.content %}\n {%- else %}\n {%- set content = '' %}\n {%- endif %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}","clean_up_tokenization_spaces": false,"eos_token": "<|im_end|>","errors": "replace","extra_special_tokens": {},"model_max_length": 131072,"pad_token": "<|endoftext|>","processor_class": "Qwen2_5_VLProcessor","split_special_tokens": false,"tokenizer_class": "Qwen2Tokenizer","unk_token": null225 unmodified lines226227228229230231232233234235236237238239240241242225 unmodified lines"<|image_pad|>","<|video_pad|>"],"auto_map": {"AutoProcessor": "modular_isaac.IsaacProcessor"},"bos_token": null,"clean_up_tokenization_spaces": false,"eos_token": "<|im_end|>","errors": "replace","extra_special_tokens": {},"model_max_length": 131072,"pad_token": "<|endoftext|>","processor_class": "IsaacProcessor","split_special_tokens": false,"tokenizer_class": "Qwen2Tokenizer","unk_token": null
chat_template.jinjaAdded+89
config.json+35-6
generation_config.json+1-1
model.safetensors.index.json+1
modular_isaac.py+169-8
processor_config.jsonAdded+209
tokenizer.json+2-2
tokenizer_config.json+4-2