Instructions to use arvisioncode/florence-2-base-Signature with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use arvisioncode/florence-2-base-Signature with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/Florence-2-base-ft") model = PeftModel.from_pretrained(base_model, "arvisioncode/florence-2-base-Signature") - Notebooks
- Google Colab
- Kaggle
Download adapter_config.json from arvisioncode/florence-2-base-Signature: direct link, hf CLI and curl.
- Browser
- Download file 817 Bytes
-
https://huggingface.co/arvisioncode/florence-2-base-Signature/resolve/main/adapter_config.json
- Command line
-
hf download hf://arvisioncode/florence-2-base-Signature/adapter_config.json
-
curl -L -o adapter_config.json https://huggingface.co/arvisioncode/florence-2-base-Signature/resolve/main/adapter_config.json
817 Bytes
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": null, | |
| "base_model_name_or_path": "microsoft/Florence-2-base-ft", | |
| "bias": "none", | |
| "eva_config": null, | |
| "exclude_modules": null, | |
| "fan_in_fan_out": false, | |
| "inference_mode": true, | |
| "init_lora_weights": "gaussian", | |
| "layer_replication": null, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "loftq_config": {}, | |
| "lora_alpha": 8, | |
| "lora_bias": false, | |
| "lora_dropout": 0.05, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 8, | |
| "rank_pattern": {}, | |
| "revision": "refs/pr/6", | |
| "target_modules": [ | |
| "lm_head", | |
| "o_proj", | |
| "k_proj", | |
| "linear", | |
| "v_proj", | |
| "q_proj", | |
| "fc2", | |
| "Conv2d" | |
| ], | |
| "task_type": "CAUSAL_LM", | |
| "use_dora": false, | |
| "use_rslora": true | |
| } |