Text Classification
Transformers
Safetensors
English
lfm2_vl
feature-extraction
decision-model
typed-decisions
system-one
shell
guardrail
command-risk
lfm2
liquid
lora
custom_code
Eval Results (legacy)
Instructions to use yannelli/d1-3b-cli-command-risk-v1.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yannelli/d1-3b-cli-command-risk-v1.5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="yannelli/d1-3b-cli-command-risk-v1.5", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("yannelli/d1-3b-cli-command-risk-v1.5", trust_remote_code=True) model = AutoModel.from_pretrained("yannelli/d1-3b-cli-command-risk-v1.5", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download processor_config.json from yannelli/d1-3b-cli-command-risk-v1.5: direct link, hf CLI and curl.
- Browser
- Download file 824 Bytes
-
https://huggingface.co/yannelli/d1-3b-cli-command-risk-v1.5/resolve/main/processor_config.json
- Command line
-
hf download hf://yannelli/d1-3b-cli-command-risk-v1.5/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/yannelli/d1-3b-cli-command-risk-v1.5/resolve/main/processor_config.json
824 Bytes
| { | |
| "image_processor": { | |
| "data_format": "channels_first", | |
| "do_image_splitting": true, | |
| "do_normalize": true, | |
| "do_pad": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "downsample_factor": 2, | |
| "encoder_patch_size": 16, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_processor_type": "Lfm2VlImageProcessor", | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "max_image_tokens": 256, | |
| "max_num_patches": 1024, | |
| "max_pixels_tolerance": 2.0, | |
| "max_tiles": 10, | |
| "min_image_tokens": 64, | |
| "min_tiles": 2, | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "return_row_col_info": true, | |
| "size": { | |
| "height": 512, | |
| "width": 512 | |
| }, | |
| "tile_size": 512, | |
| "use_thumbnail": true | |
| }, | |
| "processor_class": "Lfm2VlProcessor" | |
| } | |