bluestarburst commited on
Commit
5cef89c
1 Parent(s): 651810e
Files changed (2) hide show
  1. app.py +12 -0
  2. requirements.txt +507 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from huggingface_hub import hf_hub_download
2
+ config = hf_hub_download(repo_id="FoundationVision/groma-7b-finetune", filename="config.json")
3
+
4
+ from transformers import AutoModelForCausalLM, AutoTokenizer, LlamaForCausalLM, LlamaTokenizer
5
+ from transformers.generation import GenerationConfig
6
+ import torch
7
+ torch.manual_seed(1234)
8
+
9
+ # Note: The default behavior now has injection attack prevention off.
10
+ # tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen-VL-Chat", trust_remote_code=True)
11
+
12
+ model = LlamaForCausalLM.from_pretrained("FoundationVision/groma-7b-finetune", config=config)
requirements.txt ADDED
@@ -0,0 +1,507 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ absl-py==1.4.0
2
+ accelerate==0.29.3
3
+ aiohttp==3.9.5
4
+ aiosignal==1.3.1
5
+ alabaster==0.7.16
6
+ albumentations==1.3.1
7
+ altair==4.2.2
8
+ annotated-types==0.6.0
9
+ anyio==3.7.1
10
+ appdirs==1.4.4
11
+ argon2-cffi==23.1.0
12
+ argon2-cffi-bindings==21.2.0
13
+ array_record==0.5.1
14
+ arviz==0.15.1
15
+ astropy==5.3.4
16
+ astunparse==1.6.3
17
+ async-timeout==4.0.3
18
+ atpublic==4.1.0
19
+ attrs==23.2.0
20
+ audioread==3.0.1
21
+ auto_gptq==0.7.1
22
+ autograd==1.6.2
23
+ Babel==2.14.0
24
+ backcall==0.2.0
25
+ beautifulsoup4==4.12.3
26
+ bidict==0.23.1
27
+ bigframes==1.2.0
28
+ bleach==6.1.0
29
+ blinker==1.4
30
+ blis==0.7.11
31
+ blosc2==2.0.0
32
+ bokeh==3.3.4
33
+ bqplot==0.12.43
34
+ branca==0.7.1
35
+ build==1.2.1
36
+ CacheControl==0.14.0
37
+ cachetools==5.3.3
38
+ catalogue==2.0.10
39
+ certifi==2024.2.2
40
+ cffi==1.16.0
41
+ chardet==5.2.0
42
+ charset-normalizer==3.3.2
43
+ chex==0.1.86
44
+ click==8.1.7
45
+ click-plugins==1.1.1
46
+ cligj==0.7.2
47
+ cloudpathlib==0.16.0
48
+ cloudpickle==2.2.1
49
+ cmake==3.27.9
50
+ cmdstanpy==1.2.2
51
+ colorcet==3.1.0
52
+ coloredlogs==15.0.1
53
+ colorlover==0.3.0
54
+ colour==0.1.5
55
+ community==1.0.0b1
56
+ confection==0.1.4
57
+ cons==0.4.6
58
+ contextlib2==21.6.0
59
+ contourpy==1.2.1
60
+ cryptography==42.0.5
61
+ cufflinks==0.17.3
62
+ cupy-cuda12x==12.2.0
63
+ cvxopt==1.3.2
64
+ cvxpy==1.3.4
65
+ cycler==0.12.1
66
+ cymem==2.0.8
67
+ Cython==3.0.10
68
+ dask==2023.8.1
69
+ datascience==0.17.6
70
+ datasets==2.19.0
71
+ db-dtypes==1.2.0
72
+ dbus-python==1.2.18
73
+ debugpy==1.6.6
74
+ decorator==4.4.2
75
+ defusedxml==0.7.1
76
+ dill==0.3.8
77
+ distributed==2023.8.1
78
+ distro==1.7.0
79
+ dlib==19.24.4
80
+ dm-tree==0.1.8
81
+ docstring_parser==0.16
82
+ docutils==0.18.1
83
+ dopamine-rl==4.0.6
84
+ duckdb==0.10.2
85
+ earthengine-api==0.1.399
86
+ easydict==1.13
87
+ ecos==2.0.13
88
+ editdistance==0.6.2
89
+ eerepr==0.0.4
90
+ einops==0.7.0
91
+ en-core-web-sm==3.7.1
92
+ entrypoints==0.4
93
+ et-xmlfile==1.1.0
94
+ etils==1.7.0
95
+ etuples==0.3.9
96
+ exceptiongroup==1.2.1
97
+ fastai==2.7.14
98
+ fastcore==1.5.29
99
+ fastdownload==0.0.7
100
+ fastjsonschema==2.19.1
101
+ fastprogress==1.0.3
102
+ fastrlock==0.8.2
103
+ filelock==3.13.4
104
+ fiona==1.9.6
105
+ firebase-admin==5.3.0
106
+ Flask==2.2.5
107
+ flatbuffers==24.3.25
108
+ flax==0.8.2
109
+ folium==0.14.0
110
+ fonttools==4.51.0
111
+ frozendict==2.4.2
112
+ frozenlist==1.4.1
113
+ fsspec==2023.6.0
114
+ future==0.18.3
115
+ gast==0.5.4
116
+ gcsfs==2023.6.0
117
+ GDAL==3.6.4
118
+ gdown==5.1.0
119
+ geemap==0.32.0
120
+ gekko==1.1.1
121
+ gensim==4.3.2
122
+ geocoder==1.38.1
123
+ geographiclib==2.0
124
+ geopandas==0.13.2
125
+ geopy==2.3.0
126
+ gin-config==0.5.0
127
+ glob2==0.7
128
+ google==2.0.3
129
+ google-ai-generativelanguage==0.6.2
130
+ google-api-core==2.11.1
131
+ google-api-python-client==2.84.0
132
+ google-auth==2.27.0
133
+ google-auth-httplib2==0.1.1
134
+ google-auth-oauthlib==1.2.0
135
+ google-cloud-aiplatform==1.48.0
136
+ google-cloud-bigquery==3.12.0
137
+ google-cloud-bigquery-connection==1.12.1
138
+ google-cloud-bigquery-storage==2.24.0
139
+ google-cloud-core==2.3.3
140
+ google-cloud-datastore==2.15.2
141
+ google-cloud-firestore==2.11.1
142
+ google-cloud-functions==1.13.3
143
+ google-cloud-iam==2.15.0
144
+ google-cloud-language==2.13.3
145
+ google-cloud-resource-manager==1.12.3
146
+ google-cloud-storage==2.8.0
147
+ google-cloud-translate==3.11.3
148
+ google-colab==1.0.0
149
+ google-crc32c==1.5.0
150
+ google-generativeai==0.5.2
151
+ google-pasta==0.2.0
152
+ google-resumable-media==2.7.0
153
+ googleapis-common-protos==1.63.0
154
+ googledrivedownloader==0.4
155
+ graphviz==0.20.3
156
+ greenlet==3.0.3
157
+ grpc-google-iam-v1==0.13.0
158
+ grpcio==1.62.2
159
+ grpcio-status==1.48.2
160
+ gspread==3.4.2
161
+ gspread-dataframe==3.3.1
162
+ gym==0.25.2
163
+ gym-notices==0.0.8
164
+ h5netcdf==1.3.0
165
+ h5py==3.9.0
166
+ holidays==0.47
167
+ holoviews==1.17.1
168
+ html5lib==1.1
169
+ httpimport==1.3.1
170
+ httplib2==0.22.0
171
+ huggingface-hub==0.22.2
172
+ humanfriendly==10.0
173
+ humanize==4.7.0
174
+ hyperopt==0.2.7
175
+ ibis-framework==8.0.0
176
+ idna==3.7
177
+ imageio==2.31.6
178
+ imageio-ffmpeg==0.4.9
179
+ imagesize==1.4.1
180
+ imbalanced-learn==0.10.1
181
+ imgaug==0.4.0
182
+ importlib_metadata==7.1.0
183
+ importlib_resources==6.4.0
184
+ imutils==0.5.4
185
+ inflect==7.0.0
186
+ iniconfig==2.0.0
187
+ intel-openmp==2023.2.4
188
+ ipyevents==2.0.2
189
+ ipyfilechooser==0.6.0
190
+ ipykernel==5.5.6
191
+ ipyleaflet==0.18.2
192
+ ipython==7.34.0
193
+ ipython-genutils==0.2.0
194
+ ipython-sql==0.5.0
195
+ ipytree==0.2.2
196
+ ipywidgets==7.7.1
197
+ itsdangerous==2.2.0
198
+ jax==0.4.26
199
+ jaxlib==0.4.26+cuda12.cudnn89
200
+ jeepney==0.7.1
201
+ jieba==0.42.1
202
+ Jinja2==3.1.3
203
+ joblib==1.4.0
204
+ jsonpickle==3.0.4
205
+ jsonschema==4.19.2
206
+ jsonschema-specifications==2023.12.1
207
+ jupyter-client==6.1.12
208
+ jupyter-console==6.1.0
209
+ jupyter_core==5.7.2
210
+ jupyter-server==1.24.0
211
+ jupyterlab_pygments==0.3.0
212
+ jupyterlab_widgets==3.0.10
213
+ kaggle==1.5.16
214
+ kagglehub==0.2.3
215
+ keras==2.15.0
216
+ keyring==23.5.0
217
+ kiwisolver==1.4.5
218
+ langcodes==3.3.0
219
+ launchpadlib==1.10.16
220
+ lazr.restfulclient==0.14.4
221
+ lazr.uri==1.0.6
222
+ lazy_loader==0.4
223
+ libclang==18.1.1
224
+ librosa==0.10.1
225
+ lightgbm==4.1.0
226
+ linkify-it-py==2.0.3
227
+ llvmlite==0.41.1
228
+ locket==1.0.0
229
+ logical-unification==0.4.6
230
+ lxml==4.9.4
231
+ malloy==2023.1067
232
+ Markdown==3.6
233
+ markdown-it-py==3.0.0
234
+ MarkupSafe==2.1.5
235
+ matplotlib==3.7.1
236
+ matplotlib-inline==0.1.7
237
+ matplotlib-venn==0.11.10
238
+ mdit-py-plugins==0.4.0
239
+ mdurl==0.1.2
240
+ miniKanren==1.0.3
241
+ missingno==0.5.2
242
+ mistune==0.8.4
243
+ mizani==0.9.3
244
+ mkl==2023.2.0
245
+ ml-dtypes==0.2.0
246
+ mlxtend==0.22.0
247
+ more-itertools==10.1.0
248
+ moviepy==1.0.3
249
+ mpmath==1.3.0
250
+ msgpack==1.0.8
251
+ multidict==6.0.5
252
+ multipledispatch==1.0.0
253
+ multiprocess==0.70.16
254
+ multitasking==0.0.11
255
+ murmurhash==1.0.10
256
+ music21==9.1.0
257
+ natsort==8.4.0
258
+ nbclassic==1.0.0
259
+ nbclient==0.10.0
260
+ nbconvert==6.5.4
261
+ nbformat==5.10.4
262
+ nest-asyncio==1.6.0
263
+ networkx==3.3
264
+ nibabel==4.0.2
265
+ nltk==3.8.1
266
+ notebook==6.5.5
267
+ notebook_shim==0.2.4
268
+ numba==0.58.1
269
+ numexpr==2.10.0
270
+ numpy==1.25.2
271
+ nvidia-cublas-cu12==12.1.3.1
272
+ nvidia-cuda-cupti-cu12==12.1.105
273
+ nvidia-cuda-nvrtc-cu12==12.1.105
274
+ nvidia-cuda-runtime-cu12==12.1.105
275
+ nvidia-cudnn-cu12==8.9.2.26
276
+ nvidia-cufft-cu12==11.0.2.54
277
+ nvidia-curand-cu12==10.3.2.106
278
+ nvidia-cusolver-cu12==11.4.5.107
279
+ nvidia-cusparse-cu12==12.1.0.106
280
+ nvidia-nccl-cu12==2.19.3
281
+ nvidia-nvjitlink-cu12==12.4.127
282
+ nvidia-nvtx-cu12==12.1.105
283
+ oauth2client==4.1.3
284
+ oauthlib==3.2.2
285
+ opencv-contrib-python==4.8.0.76
286
+ opencv-python==4.8.0.76
287
+ opencv-python-headless==4.9.0.80
288
+ openpyxl==3.1.2
289
+ opt-einsum==3.3.0
290
+ optax==0.2.2
291
+ optimum==1.19.1
292
+ orbax-checkpoint==0.4.4
293
+ osqp==0.6.2.post8
294
+ packaging==24.0
295
+ pandas==2.0.3
296
+ pandas-datareader==0.10.0
297
+ pandas-gbq==0.19.2
298
+ pandas-stubs==2.0.3.230814
299
+ pandocfilters==1.5.1
300
+ panel==1.3.8
301
+ param==2.1.0
302
+ parso==0.8.4
303
+ parsy==2.1
304
+ partd==1.4.1
305
+ pathlib==1.0.1
306
+ patsy==0.5.6
307
+ peewee==3.17.3
308
+ peft==0.10.0
309
+ pexpect==4.9.0
310
+ pickleshare==0.7.5
311
+ Pillow==9.4.0
312
+ pip==23.1.2
313
+ pip-tools==6.13.0
314
+ platformdirs==4.2.0
315
+ plotly==5.15.0
316
+ plotnine==0.12.4
317
+ pluggy==1.5.0
318
+ polars==0.20.2
319
+ pooch==1.8.1
320
+ portpicker==1.5.2
321
+ prefetch-generator==1.0.3
322
+ preshed==3.0.9
323
+ prettytable==3.10.0
324
+ proglog==0.1.10
325
+ progressbar2==4.2.0
326
+ prometheus_client==0.20.0
327
+ promise==2.3
328
+ prompt-toolkit==3.0.43
329
+ prophet==1.1.5
330
+ proto-plus==1.23.0
331
+ protobuf==3.20.3
332
+ psutil==5.9.5
333
+ psycopg2==2.9.9
334
+ ptyprocess==0.7.0
335
+ py-cpuinfo==9.0.0
336
+ py4j==0.10.9.7
337
+ pyarrow==14.0.2
338
+ pyarrow-hotfix==0.6
339
+ pyasn1==0.6.0
340
+ pyasn1_modules==0.4.0
341
+ pycocotools==2.0.7
342
+ pycparser==2.22
343
+ pydantic==2.7.0
344
+ pydantic_core==2.18.1
345
+ pydata-google-auth==1.8.2
346
+ pydot==1.4.2
347
+ pydot-ng==2.0.0
348
+ pydotplus==2.0.2
349
+ PyDrive==1.3.1
350
+ PyDrive2==1.6.3
351
+ pyerfa==2.0.1.4
352
+ pygame==2.5.2
353
+ Pygments==2.16.1
354
+ PyGObject==3.42.1
355
+ PyJWT==2.3.0
356
+ pymc==5.10.4
357
+ pymystem3==0.2.0
358
+ PyOpenGL==3.1.7
359
+ pyOpenSSL==24.1.0
360
+ pyparsing==3.1.2
361
+ pyperclip==1.8.2
362
+ pyproj==3.6.1
363
+ pyproject_hooks==1.0.0
364
+ pyshp==2.3.1
365
+ PySocks==1.7.1
366
+ pytensor==2.18.6
367
+ pytest==7.4.4
368
+ python-apt==0.0.0
369
+ python-box==7.1.1
370
+ python-dateutil==2.8.2
371
+ python-louvain==0.16
372
+ python-slugify==8.0.4
373
+ python-utils==3.8.2
374
+ pytz==2023.4
375
+ pyviz_comms==3.0.2
376
+ PyWavelets==1.6.0
377
+ PyYAML==6.0.1
378
+ pyzmq==23.2.1
379
+ qdldl==0.1.7.post2
380
+ qudida==0.0.4
381
+ ratelim==0.1.6
382
+ referencing==0.34.0
383
+ regex==2023.12.25
384
+ requests==2.31.0
385
+ requests-oauthlib==1.3.1
386
+ requirements-parser==0.9.0
387
+ rich==13.7.1
388
+ rouge==1.0.1
389
+ rpds-py==0.18.0
390
+ rpy2==3.4.2
391
+ rsa==4.9
392
+ safetensors==0.4.3
393
+ scikit-image==0.19.3
394
+ scikit-learn==1.2.2
395
+ scipy==1.11.4
396
+ scooby==0.9.2
397
+ scs==3.2.4.post1
398
+ seaborn==0.13.1
399
+ SecretStorage==3.3.1
400
+ Send2Trash==1.8.3
401
+ sentencepiece==0.1.99
402
+ setuptools==67.7.2
403
+ shapely==2.0.4
404
+ six==1.16.0
405
+ sklearn-pandas==2.2.0
406
+ smart-open==6.4.0
407
+ sniffio==1.3.1
408
+ snowballstemmer==2.2.0
409
+ sortedcontainers==2.4.0
410
+ soundfile==0.12.1
411
+ soupsieve==2.5
412
+ soxr==0.3.7
413
+ spacy==3.7.4
414
+ spacy-legacy==3.0.12
415
+ spacy-loggers==1.0.5
416
+ Sphinx==5.0.2
417
+ sphinxcontrib-applehelp==1.0.8
418
+ sphinxcontrib-devhelp==1.0.6
419
+ sphinxcontrib-htmlhelp==2.0.5
420
+ sphinxcontrib-jsmath==1.0.1
421
+ sphinxcontrib-qthelp==1.0.7
422
+ sphinxcontrib-serializinghtml==1.1.10
423
+ SQLAlchemy==2.0.29
424
+ sqlglot==20.11.0
425
+ sqlparse==0.5.0
426
+ srsly==2.4.8
427
+ stanio==0.5.0
428
+ statsmodels==0.14.2
429
+ sympy==1.12
430
+ tables==3.8.0
431
+ tabulate==0.9.0
432
+ tbb==2021.12.0
433
+ tblib==3.0.0
434
+ tenacity==8.2.3
435
+ tensorboard==2.15.2
436
+ tensorboard-data-server==0.7.2
437
+ tensorflow==2.15.0
438
+ tensorflow-datasets==4.9.4
439
+ tensorflow-estimator==2.15.0
440
+ tensorflow-gcs-config==2.15.0
441
+ tensorflow-hub==0.16.1
442
+ tensorflow-io-gcs-filesystem==0.36.0
443
+ tensorflow-metadata==1.14.0
444
+ tensorflow-probability==0.23.0
445
+ tensorstore==0.1.45
446
+ termcolor==2.4.0
447
+ terminado==0.18.1
448
+ text-unidecode==1.3
449
+ textblob==0.17.1
450
+ tf_keras==2.15.1
451
+ tf-slim==1.1.0
452
+ thinc==8.2.3
453
+ threadpoolctl==3.4.0
454
+ tifffile==2024.4.18
455
+ tiktoken==0.6.0
456
+ tinycss2==1.2.1
457
+ tokenizers==0.19.1
458
+ toml==0.10.2
459
+ tomli==2.0.1
460
+ toolz==0.12.1
461
+ torch==2.2.1+cu121
462
+ torchaudio==2.2.1+cu121
463
+ torchdata==0.7.1
464
+ torchsummary==1.5.1
465
+ torchtext==0.17.1
466
+ torchvision==0.17.1+cu121
467
+ tornado==6.3.3
468
+ tqdm==4.66.2
469
+ traitlets==5.7.1
470
+ traittypes==0.2.1
471
+ transformers==4.40.0
472
+ transformers-stream-generator==0.0.5
473
+ triton==2.2.0
474
+ tweepy==4.14.0
475
+ typer==0.9.4
476
+ types-pytz==2024.1.0.20240417
477
+ types-setuptools==69.5.0.20240423
478
+ typing_extensions==4.11.0
479
+ tzdata==2024.1
480
+ tzlocal==5.2
481
+ uc-micro-py==1.0.3
482
+ uritemplate==4.1.1
483
+ urllib3==2.0.7
484
+ vega-datasets==0.9.0
485
+ wadllib==1.3.6
486
+ wasabi==1.1.2
487
+ wcwidth==0.2.13
488
+ weasel==0.3.4
489
+ webcolors==1.13
490
+ webencodings==0.5.1
491
+ websocket-client==1.7.0
492
+ Werkzeug==3.0.2
493
+ wheel==0.43.0
494
+ widgetsnbextension==3.6.6
495
+ wordcloud==1.9.3
496
+ wrapt==1.14.1
497
+ xarray==2023.7.0
498
+ xarray-einstats==0.7.0
499
+ xgboost==2.0.3
500
+ xlrd==2.0.1
501
+ xxhash==3.4.1
502
+ xyzservices==2024.4.0
503
+ yarl==1.9.4
504
+ yellowbrick==1.5
505
+ yfinance==0.2.38
506
+ zict==3.0.0
507
+ zipp==3.18.1