Commit Graph

51 Commits (e31e5d2d6430d8cd14664d88f680aa8d62ad4726)

Author SHA1 Message Date
Ross Wightman 1a2d8bb5a0 Update pip install to use whl/cpu 2024-10-02 10:26:22 -07:00
Ross Wightman 036b1f0cc9 no 2.4.1 for cpu 2024-10-02 10:18:34 -07:00
Ross Wightman 95907e69c2 Further reduce atol for model comparison, move python 3.11 + torch 2.2 -> python 3.12 + torch 2.4.1 2024-10-02 10:05:27 -07:00
Luc Georges af7eef4aba
fix(ci): remove unnecessary permissions 2024-06-10 10:52:57 +02:00
Luc Georges 2585028524
feat(ci): add trufflehog secrets detection 2024-06-10 09:54:43 +02:00
Ross Wightman c82598fc5e Remove deprecated doc delete workflows 2023-12-05 12:04:38 -08:00
Remy 963d80b299
fix: remove useless token (#1995) 2023-10-19 14:58:52 +02:00
Ross Wightman 68b2824e49
Update optim test to remove Variable/.data and fix _state_dict optim test for PyTorch 2.1 (#1988)
* Update optim test to remove Variable/.data and fix _state_dict optim test

* Attempt to run python 3.11 w/ 2.1

* Try factoring out testmarker to common var

* More fiddling

* Abandon attempt to reduce redunancy

* Another try
2023-10-12 11:53:10 -07:00
Mishig 3ebbe172ec
[doc build] Use secrets 2023-06-09 10:47:32 +02:00
Ross Wightman a08e5aed1d More models w/ multi-weight support, moving to HF hub. Removing inplace_abn from all models including TResNet 2023-04-20 22:44:49 -07:00
Benjamin Bossan 10627bbd49
CI: Split CI tests to run them in parallel (#1691)
* Split CI tests to run them in parallel

The idea of this PR is to split tests into multiple sets that can be run
in parallel by GH. For this, all tests in test_models.py that would run
on GH get a pytest marker. The GH workflow matrix is factorized to run
only a single marker. That way, only a subset of tests should run per
worker, leading to quicker results.

There is also a worker that runs all the tests that are not inside
test_models.py.

* [skip ci] empty commit to abort ci

* Fix typo in marker name

* Split fx into forward and backward

* Comment out test coverage for now

Checking if it's responsible for regression in CI runtime.

* Remove pytest cov completely from requirements

* Remove cov call in pyproject.toml

Missed that one.
2023-02-24 12:28:57 -08:00
Benjamin Bossan cf6f6adf6e Add pytest-cov, requirements-dev, pyproject.toml
When tests finish, a report should be printed that shows the code
coverage of timm. This should give us a better idea where we should work
on test coverage.

I have tested this locally (on a subset of tests) and it worked.

Since the number of test dependencies was getting quite high, I created
a requirements-dev.txt and moved them there. GH action and
CONTRIBUTING.md are adjusted accordingly.

Furthermore, instead of extending the pytest invocation, I created a
pyproject.toml and added the coverage options there. For completeness, I
also added the black settings that come closest to the style of timm.
LMK if this is not desired.

For now, the coverage is only reported but not enforced. I.e. when a PR
is created that adds uncovered lines, CI will still succeed. We could
think about adding codecov or something like that, but it can be
annoying sometimes and the service was flaky for me in the past.
2023-02-23 15:09:41 -08:00
Fredo Guan 81ca323751
Davit update formatting and fix grad checkpointing (#7)
fixed head to gap->norm->fc as per convnext, along with option for norm->gap->fc
failed tests due to clip convnext models, davit tests passed
2023-01-15 14:34:56 -08:00
Ross Wightman e8ddc6865c
Update torch to 1.13 and python to 3.10 in test workflow (#1562)
* Update torch and python version in test workflow

* Python back to 3.9 for test workflow, see if that's the cause of macos failure..

* Try windows runner

* Try Python 3.10 + macOS-12 in quest for working second target

* Remove macOS from tests, not working anymore
2022-11-26 19:46:55 -08:00
Ross Wightman 8ff45e41f7 Fix xdist dependency change 2022-11-08 15:41:10 -08:00
Ross Wightman 91fc4c7ed1
Update tests.yml 2022-10-16 20:51:20 -07:00
nateraw cf549c28b1 🎨 deploy docs from main not master 2022-10-16 15:51:29 -04:00
nateraw af0c644c5d 👷 remove --not_python_module flag 2022-10-06 14:36:39 -04:00
nateraw 8ef9c48cc5 👷 use main branch of doc-builder thats fixed now 2022-10-06 13:54:57 -04:00
nateraw 9343f6e431 👷 update ci 2022-10-05 13:58:17 -04:00
nateraw 5f9eef712c 👷 bump ci 2022-10-05 13:05:17 -04:00
nateraw 09a77700f6 👷 bump back. it was actions outage not me 2022-10-05 12:50:02 -04:00
nateraw b8e3ffd498 👷 revert ci workflow to main 2022-10-05 12:40:44 -04:00
nateraw 6153816250 🚧 test doc-builder branch to fix build here 2022-10-05 12:27:17 -04:00
nateraw 2f1abc2cf9 👷 add build_documentation workflow 2022-10-04 16:38:26 -04:00
nateraw 3a429d04ee 🚑 supply --not_python_module for now 2022-10-03 17:07:24 -04:00
nateraw d4d915caf3 🚧 update path_to_docs in pr doc builder workflow 2022-10-03 17:03:11 -04:00
nateraw 96109a909b 🚧 update docs path 2022-10-03 13:35:44 -04:00
nateraw 6c3d02a7e5 🚧 update inputs to build_pr_documentation workflow 2022-10-03 13:25:21 -04:00
nateraw 25059001a9 🚧 add repo_owner 2022-10-03 13:12:09 -04:00
nateraw e4c99d2bd6 📝 add hfdocs documentation 2022-09-23 17:51:45 -07:00
Ross Wightman 25d1526092 Update pytest for GitHub runner to use --forked with xdist, hopefully eliminate memory buildup 2022-01-06 16:04:23 -08:00
kozistr df5afabc92 update: rollback pytest-xdist 2022-01-02 14:39:17 +09:00
kozistr ca4fb7d154 feature: boost speed of pytest 2022-01-01 15:31:38 +09:00
Ross Wightman 9d6aad44f8 Update tests to run Python 3.9, PyTorch 1.10, torchvision 0.11.1 2021-11-18 21:38:04 -08:00
Ross Wightman 959eaff121 Add optimizer tests and update testing to pytorch 1.9 2021-08-17 17:59:15 -07:00
Ross Wightman 34522097b1 See if we can use tcmalloc in test runner 2021-05-30 21:12:10 -07:00
Ross Wightman 99d97e0d67 Hopefully the last test update for this PR... 2021-05-25 11:10:17 -07:00
Ross Wightman 317ea3e599 Tweak NFNet, ResNetV2, RexNet feature extraction, use pre-act features for simplicty. Update tests for pytorch 1.8. 0.4.5 version bump. 2021-03-06 12:48:06 -08:00
Eli Uriegas ab9f1fc995
Update torch -> 1.7.0, torchvision -> 0.8.1 2020-11-02 10:20:17 -08:00
Ross Wightman 0734c0d187 Update test workflow 2020-08-11 19:04:37 -07:00
Ross Wightman 9806f3e1ff autosquash github workflow didn't work out, removing 2020-08-03 17:23:57 -07:00
Ross Wightman 7995295968 Merge branch 'logger' into features. Change 'logger' to '_logger'. 2020-07-27 18:00:46 -07:00
Ross Wightman 0915beddad Add autosquash workflow 2020-07-25 14:26:30 -07:00
Ross Wightman 701dba303e Again 2020-07-21 08:53:51 -07:00
Ross Wightman 648ba41b4b Try again with the worfklow threads 2020-07-21 08:52:56 -07:00
Ross Wightman 52b6e72e86 Try defining num threads for github workflow tests explicity (2) 2020-07-21 08:49:11 -07:00
Ross Wightman 17270c69b9 Remove annoying InceptionV3 dependency on scipy and insanely slow trunc_norm init. Bring InceptionV3 code into this codebase and use upcoming torch trunch_norm_ init. 2020-05-12 21:59:34 -07:00
michal 8c77f14cae Install cpu version of torch on ubuntu 2020-05-07 01:09:16 -04:00
michal 8da43e0617 Install extra dependencies required by some models and log test durations 2020-05-07 00:20:34 -04:00