Instructions to use enalis/scold with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use enalis/scold with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("image-to-text", model="enalis/scold")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("enalis/scold", dtype="auto") - Notebooks
- Google Colab
- Kaggle
model setup
Browse files- config.json +11 -0
- model.safetensors +3 -0
config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"SCOLDModel"
|
| 4 |
+
],
|
| 5 |
+
"embedding_dim": 512,
|
| 6 |
+
"image_backbone": "swin_base_patch4_window7_224.ms_in22k",
|
| 7 |
+
"model_type": "scold",
|
| 8 |
+
"text_backbone": "roberta-base",
|
| 9 |
+
"torch_dtype": "float32",
|
| 10 |
+
"transformers_version": "4.54.0"
|
| 11 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f11772b872a67418e934bb77a1135ba1845b55aab6d2ff97d8fabf6e872de353
|
| 3 |
+
size 949948152
|