Instructions to use RioJune/AG-KD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RioJune/AG-KD with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-object-detection", model="RioJune/AG-KD", trust_remote_code=True)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("RioJune/AG-KD", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("RioJune/AG-KD", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload merged model and processor
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -3,8 +3,8 @@
|
|
| 3 |
"Florence2ForConditionalGeneration"
|
| 4 |
],
|
| 5 |
"auto_map": {
|
| 6 |
-
"AutoConfig": "RioJune/AG-KD-
|
| 7 |
-
"AutoModelForCausalLM": "RioJune/AG-KD-
|
| 8 |
},
|
| 9 |
"bos_token_id": 0,
|
| 10 |
"eos_token_id": 2,
|
|
|
|
| 3 |
"Florence2ForConditionalGeneration"
|
| 4 |
],
|
| 5 |
"auto_map": {
|
| 6 |
+
"AutoConfig": "RioJune/AG-KD--configuration.Florence2Config",
|
| 7 |
+
"AutoModelForCausalLM": "RioJune/AG-KD--model.Florence2ForConditionalGeneration"
|
| 8 |
},
|
| 9 |
"bos_token_id": 0,
|
| 10 |
"eos_token_id": 2,
|