Spaces:
Sleeping
Sleeping
Upload models.py
Browse files
models.py
CHANGED
@@ -11,10 +11,11 @@ import gradio_helpers
|
|
11 |
import paligemma_bv
|
12 |
|
13 |
|
14 |
-
ORGANIZATION = '
|
15 |
BASE_MODELS = [
|
16 |
-
('paligemma-3b-mix-224-jax', 'paligemma-3b-mix-224'),
|
17 |
-
('paligemma-3b-mix-448-jax', 'paligemma-3b-mix-448'),
|
|
|
18 |
]
|
19 |
MODELS = {
|
20 |
# **{
|
@@ -29,21 +30,15 @@ MODELS = {
|
|
29 |
}
|
30 |
|
31 |
MODELS_INFO = {
|
32 |
-
'paligemma-3b-
|
33 |
'JAX/FLAX PaliGemma 3B weights, finetuned with 224x224 input images and 256 token input/output '
|
34 |
'text sequences on a mixture of downstream academic datasets. The models are available in float32, '
|
35 |
'bfloat16 and float16 format for research purposes only.'
|
36 |
),
|
37 |
-
'paligemma-3b-mix-448': (
|
38 |
-
'JAX/FLAX PaliGemma 3B weights, finetuned with 448x448 input images and 512 token input/output '
|
39 |
-
'text sequences on a mixture of downstream academic datasets. The models are available in float32, '
|
40 |
-
'bfloat16 and float16 format for research purposes only.'
|
41 |
-
),
|
42 |
}
|
43 |
|
44 |
MODELS_RES_SEQ = {
|
45 |
-
'paligemma-3b-
|
46 |
-
'paligemma-3b-mix-448': (448, 512),
|
47 |
}
|
48 |
|
49 |
# "CPU basic" has 16G RAM, "T4 small" has 15 GB RAM.
|
|
|
11 |
import paligemma_bv
|
12 |
|
13 |
|
14 |
+
ORGANIZATION = 'Jegree'
|
15 |
BASE_MODELS = [
|
16 |
+
# ('paligemma-3b-mix-224-jax', 'paligemma-3b-mix-224'),
|
17 |
+
# ('paligemma-3b-mix-448-jax', 'paligemma-3b-mix-448'),
|
18 |
+
('myPaligem', 'fine-tuned-paligemma-3b-pt-224')
|
19 |
]
|
20 |
MODELS = {
|
21 |
# **{
|
|
|
30 |
}
|
31 |
|
32 |
MODELS_INFO = {
|
33 |
+
'fine-tuned-paligemma-3b-pt-224': (
|
34 |
'JAX/FLAX PaliGemma 3B weights, finetuned with 224x224 input images and 256 token input/output '
|
35 |
'text sequences on a mixture of downstream academic datasets. The models are available in float32, '
|
36 |
'bfloat16 and float16 format for research purposes only.'
|
37 |
),
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
|
40 |
MODELS_RES_SEQ = {
|
41 |
+
'fine-tuned-paligemma-3b-pt-224': (224, 128),
|
|
|
42 |
}
|
43 |
|
44 |
# "CPU basic" has 16G RAM, "T4 small" has 15 GB RAM.
|