Instructions to use the-jb/Integral-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use the-jb/Integral-9B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("the-jb/Integral-9B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from the-jb/Integral-9B: direct link, hf CLI and curl.
- Browser
- Download file 4.71 kB
-
https://huggingface.co/the-jb/Integral-9B/resolve/main/config.json
- Command line
-
hf download hf://the-jb/Integral-9B/config.json
-
curl -L -o config.json https://huggingface.co/the-jb/Integral-9B/resolve/main/config.json
4.71 kB
| { | |
| "architectures": [ | |
| "IntegralForConditionalGeneration" | |
| ], | |
| "image_token_id": 248056, | |
| "model_type": "integral", | |
| "text_config": { | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "attn_output_gate": true, | |
| "bos_token_id": null, | |
| "dtype": "bfloat16", | |
| "eos_token_id": 248044, | |
| "full_attention_interval": 4, | |
| "head_dim": 256, | |
| "hidden_act": "silu", | |
| "hidden_size": 4096, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 12288, | |
| "layer_types": [ | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention" | |
| ], | |
| "linear_conv_kernel_dim": 4, | |
| "linear_key_head_dim": 128, | |
| "linear_num_key_heads": 16, | |
| "linear_num_value_heads": 32, | |
| "linear_value_head_dim": 128, | |
| "mamba_ssm_dtype": "float32", | |
| "max_position_embeddings": 262144, | |
| "mlp_only_layers": [], | |
| "model_type": "integral_text", | |
| "mtp_num_hidden_layers": 1, | |
| "mtp_use_dedicated_embeddings": false, | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 32, | |
| "num_key_value_heads": 4, | |
| "pad_token_id": null, | |
| "partial_rotary_factor": 0.25, | |
| "rms_norm_eps": 1e-06, | |
| "rope_parameters": { | |
| "mrope_interleaved": true, | |
| "mrope_section": [ | |
| 11, | |
| 11, | |
| 10 | |
| ], | |
| "partial_rotary_factor": 0.25, | |
| "rope_theta": 10000000, | |
| "rope_type": "default" | |
| }, | |
| "tie_word_embeddings": false, | |
| "use_cache": true, | |
| "vocab_size": 248320 | |
| }, | |
| "tie_word_embeddings": false, | |
| "transformers_version": "5.14.1", | |
| "video_token_id": 248057, | |
| "vision_end_token_id": 248054, | |
| "vision_start_token_id": 248053, | |
| "vision_tokenizer_config": { | |
| "abstraction_fusion_group_size": 4, | |
| "abstraction_fusion_hidden_size": 1152, | |
| "abstraction_fusion_intermediate_size": 4608, | |
| "abstraction_fusion_num_attention_heads": 16, | |
| "abstraction_fusion_num_hidden_layers": 1, | |
| "bottleneck_hidden_size": 1152, | |
| "bottleneck_post_intermediate_size": 4608, | |
| "bottleneck_pre_intermediate_size": 4096, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "initializer_range": 0.02, | |
| "latent_size": 256, | |
| "layer_norm_eps": 1e-05, | |
| "merger_hidden_size": 1152, | |
| "merger_intermediate_size": 4608, | |
| "merger_layer_norm_eps": 1e-06, | |
| "merger_out_hidden_size": 4096, | |
| "model_type": "integral_vision_tokenizer", | |
| "patch_size": 16, | |
| "pixel_decoder_hidden_size": 1152, | |
| "pixel_decoder_in_hidden_size": 1152, | |
| "pixel_decoder_in_intermediate_size": 4608, | |
| "pixel_decoder_intermediate_size": 3072, | |
| "pixel_decoder_num_attention_heads": 16, | |
| "pixel_decoder_num_hidden_layers": 28, | |
| "pixel_decoder_rope_theta": 100.0, | |
| "spatial_merge_size": 2, | |
| "temporal_patch_size": 2, | |
| "vae_hidden_size": 2304, | |
| "vision_hidden_size": 1152, | |
| "vision_intermediate_size": 4304, | |
| "vision_num_attention_heads": 16, | |
| "vision_num_hidden_layers": 27, | |
| "vision_num_position_embeddings": 2304, | |
| "visual_generation_adapter_head_dim": 256, | |
| "visual_generation_adapter_intermediate_size": 2304, | |
| "visual_generation_adapter_num_key_value_heads": 4, | |
| "visual_generation_adapter_num_layers": 8 | |
| }, | |
| "visual_generation_config": { | |
| "flow_head_hidden_size": 3072, | |
| "flow_head_intermediate_size": 12288, | |
| "flow_head_num_attention_heads": 32, | |
| "flow_head_num_hidden_layers": 2, | |
| "flow_head_rope_theta": 100.0, | |
| "head_dim": 256, | |
| "hidden_size": 2048, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 8192, | |
| "key_value_layer_indices": [ | |
| 3, | |
| 7, | |
| 11, | |
| 15, | |
| 19, | |
| 23, | |
| 27, | |
| 31 | |
| ], | |
| "latent_size": 256, | |
| "layer_norm_eps": 1e-06, | |
| "model_type": "integral_visual_generation", | |
| "num_attention_heads": 16, | |
| "num_key_value_heads": 8, | |
| "partial_rotary_factor": 0.5, | |
| "rope_theta": 100.0, | |
| "time_shift": 4.0, | |
| "timestep_embedding_size": 512, | |
| "timestep_scale": 1000.0 | |
| } | |
| } | |