Commit Graph

18337 Commits

Author SHA1 Message Date
Kashif Rasul
906d6a8973 rename to TimesFMModelForPrediction 2025-02-27 16:00:58 -08:00
Kashif Rasul
7e5921cf89 batch_size is not a configuration 2025-02-27 16:00:58 -08:00
Kashif Rasul
f810125419 isort fix 2025-02-27 16:00:58 -08:00
Kashif Rasul
5ebeec2bf1 sort docs 2025-02-27 16:00:58 -08:00
Kashif Rasul
5b184400ce move to time series section 2025-02-27 16:00:58 -08:00
Kashif Rasul
e8e31cd7c8 fix copies 2025-02-27 16:00:58 -08:00
Kashif Rasul
8edb51e41b fixup 2025-02-27 16:00:58 -08:00
Kashif Rasul
5376dd770b smaller tests 2025-02-27 16:00:58 -08:00
Kashif Rasul
9bb5a49755 rename mask to attention_mask 2025-02-27 16:00:58 -08:00
Kashif Rasul
fd270d980f initial documentation 2025-02-27 16:00:58 -08:00
Kashif Rasul
c55088da39 add intermediate_size and initialize with config 2025-02-27 16:00:58 -08:00
Kashif Rasul
bb2a850cd9 remove timesfm_layers 2025-02-27 16:00:58 -08:00
Jinan Zhou
bbf738cf33 all unit tests passed 2025-02-27 16:00:58 -08:00
Jinan Zhou
47affe8668 fixing unit tests 2025-02-27 16:00:58 -08:00
Kashif Rasul
7cd2e41b58 do not change TimesFMOutput 2025-02-27 16:00:58 -08:00
Kashif Rasul
6419285d9e add post_init 2025-02-27 16:00:58 -08:00
Jinan Zhou
001365597c fixing unit tests in progress 2025-02-27 16:00:58 -08:00
Jinan Zhou
3818ee4406 fixing unit tests 2025-02-27 16:00:58 -08:00
Jinan Zhou
72ffaafa15 the model runs 2025-02-27 16:00:58 -08:00
Jinan Zhou
d71713239d timesfm test 2025-02-27 16:00:58 -08:00
Jinan Zhou
c7f760ea1c adapted to HF convention 2025-02-27 16:00:58 -08:00
Jinan Zhou
a52eeca074 restructing in progress 2025-02-27 16:00:58 -08:00
Jinan Zhou
c042a9d7bb Adapting TimesFM to HF format 2025-02-27 16:00:58 -08:00
Jinan Zhou
7e0305aea4 remove covariate forecasting 2025-02-27 16:00:58 -08:00
Jinan Zhou
8abfc2e608 copy from Google official implementation 2025-02-27 16:00:58 -08:00
Kashif Rasul
1ec48c7bb2 order of imports 2025-02-27 16:00:58 -08:00
Jinan Zhou
a81e99b1e2 TimesFM Model 2025-02-27 16:00:58 -08:00
Jinan Zhou
f79803cbff remove unneeded modules 2025-02-27 16:00:58 -08:00
Jinan Zhou
9fb8bf8408 standardize code format with black 2025-02-27 16:00:58 -08:00
Kashif Rasul
3be5893424 fix input_dims 2025-02-27 16:00:58 -08:00
Kashif Rasul
95a06a9a6a add more configs and TimesFMResidualBlock 2025-02-27 16:00:58 -08:00
Kashif Rasul
5178c111ae calcuate scale_factor once 2025-02-27 16:00:58 -08:00
Kashif Rasul
8bbda0644a add TimesFMPositionalEmbedding 2025-02-27 16:00:58 -08:00
Kashif Rasul
f43a0df6a6 added config and attention layers 2025-02-27 16:00:58 -08:00
Kashif Rasul
c2625e02e2 initial copy from t5 2025-02-27 16:00:58 -08:00
Eduardo Pacheco
222505c7e4
[GroundingDino] Fix grounding dino loss 🚨 (#31828)
* Starting to fix GroundingDinoLoss and GroundingDinoHungarianMatcher

* More updates

* More updates

* fixed: GroundingDinoLoss

* fixed: failing tests

* Update src/transformers/models/grounding_dino/modeling_grounding_dino.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update tests/models/grounding_dino/test_modeling_grounding_dino.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update src/transformers/models/grounding_dino/modeling_grounding_dino.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update src/transformers/models/grounding_dino/modeling_grounding_dino.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update src/transformers/models/grounding_dino/modeling_grounding_dino.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update src/transformers/models/grounding_dino/modeling_grounding_dino.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update src/transformers/models/grounding_dino/modeling_grounding_dino.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update src/transformers/models/grounding_dino/modeling_grounding_dino.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update src/transformers/models/grounding_dino/modeling_grounding_dino.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update src/transformers/models/grounding_dino/modeling_grounding_dino.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Addressed comments

* Update src/transformers/models/grounding_dino/modeling_grounding_dino.py

Co-authored-by: Sangbum Daniel Choi <34004152+SangbumChoi@users.noreply.github.com>

* add: cardinality loss and make box loss as copy from

* change: default for reduction loss is sum

* fix: vectorized generate fake box

* fix copies

* Addressed comments

* addressed comments

* addressed one-hot

* Update tests/models/grounding_dino/test_modeling_grounding_dino.py

Co-authored-by: Sangbum Daniel Choi <34004152+SangbumChoi@users.noreply.github.com>

* Addressed comments

* fixed test

* Update src/transformers/models/grounding_dino/modeling_grounding_dino.py

* Update tests/models/grounding_dino/test_modeling_grounding_dino.py

Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com>

* Starting to fix GroundingDinoLoss and GroundingDinoHungarianMatcher

* More updates

* More updates

* fixed: GroundingDinoLoss

* add: cardinality loss and make box loss as copy from

* fix copies

* Revert "Update tests/models/grounding_dino/test_modeling_grounding_dino.py"

This reverts commit aa74c4c57c430e54cc74c414d6269edb65c73e83.

* [run-slow] groundigdino

* remove nestedtensor

* [run-slow] groundig_dino

* [run-slow] grounding_dino

* [run-slow] grounding_dino

* [run-slow] grounding_dino

* check

* check

* add: enconder intermediate outputs to ImageLoss forward

* add: GroundingDinoForObjectDetectionLoss in the loss directory

* make style

* fix the loss function

* remove class_reduction since it sum is default

* remove class_reduction

* Update src/transformers/loss/loss_grounding_dino.py

Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com>

* simple fix

* Update src/transformers/loss/loss_grounding_dino.py

Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com>

* minor fix

* Update src/transformers/loss/loss_for_object_detection.py

---------

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
Co-authored-by: Sangbum Daniel Choi <34004152+SangbumChoi@users.noreply.github.com>
Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com>
Co-authored-by: sangbumchoi <danielsejong55@gmail.com>
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-02-27 19:15:58 +00:00
Yih-Dar
482d17be60
Fix hub_retry (#36449)
* cry

* trigger

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-02-27 14:38:25 +01:00
Harry Mellor
6a876462c3
Lazy import libraries in src/transformers/image_utils.py (#36435)
* Lazy import libraries in `src/transformers/image_utils.py`

* `make fixup`

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>

* Protect imports

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>

---------

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
2025-02-27 12:53:42 +00:00
Kashif Rasul
8d5a210f3a add docstrings to output data classes 2025-02-27 13:10:37 +01:00
Kashif Rasul
c410cde64a fix logging 2025-02-27 12:49:28 +01:00
Joao Gante
8aed019764
[generate] torch.distributed-compatible DynamicCache (#36373)
* test

* docstring

* prepare distributed cache data

* fix cat dim

* test mvp

* add test checks

* like this?

* working test and solution

* nit

* nit

* add shape info
2025-02-27 11:48:57 +00:00
Kashif Rasul
85446e3f32 add doc strings 2025-02-27 12:28:06 +01:00
Kashif Rasul
e401b3353f override generate as its not needed 2025-02-27 12:04:51 +01:00
Kashif Rasul
72ae8f5e48
Merge branch 'main' into timesfm 2025-02-27 11:58:44 +01:00
Kashif Rasul
c34286fb13 fix docstring 2025-02-27 11:57:20 +01:00
wejoncy
17792556b2
[save_pretrained ] Skip collecting duplicated weight (#36409)
* Skip collecting duplicated weight

* format
2025-02-27 10:57:11 +01:00
Yih-Dar
2d6cc0dfde
Add contents: write (#36445)
fix permission

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-02-27 10:55:37 +01:00
Yih-Dar
549db241e5
Fix another permission (#36444)
* fix permission

* fix permission

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-02-27 10:29:06 +01:00
Yih-Dar
a8e4fe45fd
Fix permission (#36443)
fix permission

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-02-27 10:08:31 +01:00
Yih-Dar
d0727d92cd
Change PR to draft when it is (re)opened (#36417)
* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

* draft

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2025-02-27 09:44:33 +01:00