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 processor_config.json from the-jb/Integral-9B: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/the-jb/Integral-9B/resolve/main/processor_config.json
- Command line
-
hf download hf://the-jb/Integral-9B/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/the-jb/Integral-9B/resolve/main/processor_config.json
1.09 kB
| { | |
| "image_generation_marker": "<image_gen>\n\nresolution: {h}x{w}\n\n<vision_start>", | |
| "image_generation_system_prompt": "You are a multimodal assistant that can both understand and generate images.\n\nWhen you are asked for an image, restate the requested size and then open the image,\nin exactly this form:\n\n<image_gen>\n\nresolution: HxW\n\n<vision_start>\n\nHxW is the size the request names. The image itself follows <vision_start>.", | |
| "image_generation_user_template": "Generate an image at {h}x{w}.\n\n{caption}", | |
| "image_processor": { | |
| "do_convert_rgb": true, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_processor_type": "Qwen2VLImageProcessor", | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "merge_size": 2, | |
| "patch_size": 16, | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "longest_edge": 16777216, | |
| "shortest_edge": 65536 | |
| }, | |
| "temporal_patch_size": 2 | |
| }, | |
| "processor_class": "IntegralProcessor" | |
| } | |