Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optim-wip: Improve docs for Sphinx #983

Open
wants to merge 531 commits into
base: optim-wip
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
531 commits
Select commit Hold shift + click to select a range
47503f8
export LLMAttrResult & ProductBaselines (#1216)
aobo-y Dec 4, 2023
645af96
Add docs for LLMAttribution (#1217)
aobo-y Dec 4, 2023
37fe0b1
Correct default `method` argument for captum.attr.visualization.visua…
teddykoker Dec 5, 2023
9f365be
Add tests for PyTorch 1.10 - 2.1 (#1218)
vivekmig Dec 5, 2023
833d6aa
Updating version to 0.7.0 (#1219)
aobo-y Dec 5, 2023
bd1b4c6
add `NaiveInfluenceFunction` (#1214)
Dec 5, 2023
68d88cf
add `ArnoldiInfluenceFunction` (#1187)
Dec 5, 2023
fefcb5b
Use past_key_values to speed up multi-token target LLM Attribution (#…
vivekmig Dec 19, 2023
032506e
Add a tutorial for LLM Attribution (#1228)
aobo-y Jan 8, 2024
5f4a6ac
Fix lint issues related to autodeps
Jan 24, 2024
36434b2
pytorch/captum 4/4
Feb 5, 2024
f31b0be
Fix pytext lint error (#1239)
vivekmig Feb 21, 2024
7ee195d
mps fix (#1227)
Jerry-Master Feb 22, 2024
ed3ac57
Pyre fix for rest of insights folder
yucu Mar 1, 2024
99164ec
apply Black 2024 style in fbcode (5/16)
amyreese Mar 3, 2024
8473778
Pyre fix for rest of tests
yucu Mar 5, 2024
38daaed
Add index in parameterized test names
cicichen01 Mar 7, 2024
2828cd1
Add LayerFeaturePermutation
Mar 8, 2024
837168f
Use Python properties to cleanly apply rules to class fields
cicichen01 Mar 11, 2024
5eb5498
Fix Black version and OSS Failures (#1241)
vivekmig Mar 14, 2024
48d71ca
Simplify the _check_loss_fn() logic (#1243)
cicichen01 Mar 15, 2024
e9f43bd
remove patch in prod code (#1244)
cicichen01 Mar 15, 2024
949ec60
Move curent_mask to perturbed tensor device (#1245)
Mar 18, 2024
f601cdd
Add comment (#1248)
cicichen01 Mar 19, 2024
c6dcc71
Use Python properties to cleanly apply rules to checkpoints (#1249)
cicichen01 Mar 19, 2024
fabac35
Type Annotation for influence (#1247)
cicichen01 Mar 19, 2024
5c9d0bf
Create TARGETS for captum/_utils (#1250)
yucu Mar 21, 2024
80c7ce5
Simplify the get_random_model_and_data() method (#1251)
cicichen01 Mar 21, 2024
6e05bba
Specify Types to enable future function splits (#1253)
cicichen01 Mar 22, 2024
d2cd12c
Create TARGETS for captum/robust (#1255)
yucu Mar 22, 2024
38ed993
Create TARGETS for captum/influence (#1256)
yucu Mar 22, 2024
f8dc1b7
Create TARGETS for captum/concept (#1257)
yucu Mar 22, 2024
f94d3ee
Separate the data generation logic (#1258)
cicichen01 Mar 22, 2024
8d793d5
Split the get_random_model_and_data() method [1/n] (#1252)
cicichen01 Mar 25, 2024
724e9a1
Specify use_cpu as bool for datasets (#1259)
cicichen01 Mar 25, 2024
c6e9c22
Move helper functions for influence tests to be under helpers directo…
cicichen01 Mar 25, 2024
2915044
move more helper function for tests to helpers (#1262)
cicichen01 Mar 26, 2024
88f4b0a
Create TARGETS for captum/attr (#1263)
yucu Mar 26, 2024
dab9447
Fix the tests with exceptions assertions having multiple top-level st…
cicichen01 Mar 26, 2024
3963723
Add test for influence utils (#1265)
cicichen01 Mar 26, 2024
c7a4e60
parse_tutorials update (#1268)
yucu Apr 12, 2024
8b9983d
Remove some linter override (#1270)
yucu Apr 12, 2024
6cb3ef6
Basic test for LayerFeaturePermutation (#1272)
yucu Apr 16, 2024
facb31a
Remove Llama2 tutorial path append (#1277)
vivekmig Apr 23, 2024
ec52e97
Explicitly define attribute function for LayerFeaturePermutation (#1274)
yucu Apr 24, 2024
93574dd
Add LayerFeaturePermutation to website
yucu Apr 25, 2024
2c292df
pytorch/captum/captum/insights (#1280)
May 7, 2024
46b706c
Fix format in captum/insights/attr_vis/app.py (#1288)
yucu May 29, 2024
03340ec
Add capability to pass additional grad_kwargs for LayerGradientXActiv…
yucu May 31, 2024
05a6dd4
Add capability to pass grad_kwargs for grad_cam, internal_influence, …
jjuncho Jun 10, 2024
5022a41
Update deprecated PyTorch function in Captum (#1292)
kit1980 Jun 10, 2024
3f0cd93
Implement serialization of Summarizer (#1293)
lurunming Jun 10, 2024
3d40dae
Random typing fix (#1299)
yucu Jun 21, 2024
103c742
Bump PyTorch and Python version (#1298)
yucu Jun 21, 2024
418a295
Add pip cache purge to install_via_pip (#1300)
yucu Jun 25, 2024
4a11f44
Remove unnecessary PyTorch version check (#1301)
yucu Jun 25, 2024
6caf5e3
Update TestParseVersion with some newer version number (#1302)
yucu Jun 25, 2024
c33e619
Reduce the running time for test_simple_batch_kernel_shap (#1303)
cyrjano Jun 25, 2024
ef3ba2d
Remove unnecessary Python version check (#1305)
yucu Jul 3, 2024
3125f59
Added fix for gpu support for other LLM attribution models (#1307)
jjuncho Jul 18, 2024
3543414
Initial version of async attribution with torch.futures (#1295)
yucu Jul 19, 2024
430793e
Add Future async support to FeaturePermutation (#1316)
jjuncho Aug 1, 2024
2434cf7
Future Async support for more test coverage (#1317)
jjuncho Aug 6, 2024
1f9957f
Enable pyre for Captum open source part- 1/2 (#1318)
yucu Aug 7, 2024
c93acbe
Enable pyre for Captum open source part- 2/2 (#1319)
yucu Aug 7, 2024
df28f5b
Fix async test set up (#1314)
yucu Aug 12, 2024
25c3cc8
Improve LLM attribution test cases + add type annotations (#1323)
craymichael Aug 14, 2024
5ffd68a
Separate out future logic from attribute method into attribute_future…
jjuncho Aug 15, 2024
497f9bd
Enable pyre for Captum - open source tests (#1324)
yucu Aug 16, 2024
24869fa
Added attribute_future to Attribution parent interface (#1326)
jjuncho Aug 19, 2024
d267fd4
Fix titanic tutorial to convert datatypes to float (#1331)
vivekmig Aug 19, 2024
09aa048
Add missing Pyre mode headers] [batch:16/407] [shard:12/N]
Aug 19, 2024
0665ea5
Final round of Pyre enablement (#1330)
yucu Aug 20, 2024
e01c07b
Gradient-based LLM attribution in tutorial + LLM attribution type ann…
craymichael Aug 22, 2024
591078a
Support Cache Class for New Versions of Transformers Library (#1336)
craymichael Sep 5, 2024
856d51f
Revert D62210529 (#1338)
Sep 6, 2024
d89243b
Add exceptions to callback methods (#1335)
jjuncho Sep 6, 2024
d8ceaa8
Add additional gradient-based attribution methods to LLM Attribution …
craymichael Sep 9, 2024
ecfa677
Add type error suppressions for upcoming upgrade (#1344)
Sep 12, 2024
973a071
Add type error suppressions for upcoming upgrade (#1345)
Sep 12, 2024
7b22550
Support Cache Class for New Versions of Transformers Library (#1341)
craymichael Sep 12, 2024
5839d52
Support Cache Class for Even Newer Versions of Transformers Library (…
craymichael Sep 13, 2024
b7ca840
Ensure autograd graphs are freed between attribute calls (#1347)
craymichael Sep 16, 2024
6636f4d
Pretty-print tokens in `llm_attr` methods (#1348)
craymichael Sep 16, 2024
70619a6
Condense long text in plot axis (#1349)
csauper Sep 17, 2024
7b80c5b
stop stripping first character from output string (#1351)
csauper Sep 19, 2024
fc910e5
fix LLMAttribution for old pytorch/python versions (#1353)
DianjingLiu Sep 19, 2024
49d8689
llm plot visual improvements (#1354)
csauper Sep 19, 2024
4f8caeb
Add unit test verifying compatibility with huggingface models (#1352)
DianjingLiu Sep 20, 2024
9600e28
No gridlines on token attr plots+typo fix (#1355)
craymichael Sep 20, 2024
0af8bd6
Add types to fix pyre errors in InterpretableInput [1/n] (#1356)
csauper Sep 24, 2024
15738d0
Fix more pyre errors for llm_attr and tests [2/n] (#1359)
csauper Sep 25, 2024
bacac27
LLM tokenizer pretty decoding fix for emojis/unicode (#1360)
craymichael Sep 26, 2024
14a642c
Test against multiple version of transformers library (#1362)
craymichael Oct 10, 2024
fd758e0
Remove redundant LLM attr test (#1364)
craymichael Oct 11, 2024
4cb2808
Reduce complexity of FeatureAblation.attribute_future (#1368)
craymichael Oct 15, 2024
c68334b
Fixes for mypy 1.12.0 in OSS tests (#1371)
craymichael Oct 16, 2024
5eb4fb5
'visualize_image_attr' is too complex (#1372)
jjuncho Oct 16, 2024
1994c23
Reducing pyre-fixme's in visualization.py (#1377)
jjuncho Oct 17, 2024
a0336b5
Reduce complexity of DataParallelMeta.make_single_dp_test (#1369)
craymichael Oct 17, 2024
8ac2898
Reduce complexity of 'LimeBase.attribute' (#1370)
craymichael Oct 17, 2024
9689ccd
Reduce complexity of 'sgd_train_linear_model' (#1374)
craymichael Oct 17, 2024
28c58da
Reduce complexity of 'sklearn_train_linear_model' (#1375)
craymichael Oct 17, 2024
9340d67
Reduce complexity of 'infidelity' (#1376)
craymichael Oct 17, 2024
0f2170a
Reduce complexity of 'NoiseTunnel.attribute' (#1378)
craymichael Oct 17, 2024
8dc48a5
Reduce complexity of logging try-catch + add typing (#1380)
craymichael Oct 17, 2024
75be44f
Adjust hessian_reg to fix Arnoldi test case (#1388)
Oct 18, 2024
ad40160
Update config to allow running mypy on Captum in fbcode (#1386)
Oct 18, 2024
cd45461
replace uses of np.ndarray with npt.NDArray (#1389)
igorsugak Oct 19, 2024
103a3fd
Address instances of "Overloaded function signature x will never be m…
craymichael Oct 21, 2024
fd985a3
Add stacklevel to across captum to satisfy flake8 (#1382)
craymichael Oct 21, 2024
ed5daa3
Address remaining mypy errors (#1383)
craymichael Oct 21, 2024
1c941a6
Add retry workflow for Captum OSS GitHub Actions (#1408)
Oct 21, 2024
f61847f
'visualize_timeseries_attr' is too complex (#1384)
jjuncho Oct 22, 2024
1ba8977
Upgrade fbcode/pytorch to Python Scientific Stack 2 (#1387)
igorsugak Oct 22, 2024
e63d39f
Update Captum rerun workflow to operate directly on workflow completi…
Oct 22, 2024
0f7ea16
Add additional overload signatures for shared methods to resolve pyre…
Oct 23, 2024
2820ee2
Fix pyre errors in Shapley Values (#1405)
Oct 23, 2024
96ce209
Fix pyre errors in Saliency (#1404)
Oct 23, 2024
f48431a
Fix pyre errors in Occlusion (#1403)
Oct 23, 2024
b80ae81
Fix pyre errors in NoiseTunnel (#1402)
Oct 23, 2024
2c845a0
Fix pyre errors in LRP (#1401)
Oct 23, 2024
8af2836
Fix pyre errors in Lime (#1400)
Oct 23, 2024
b542192
Fix pyre errors in Kernel Shap (#1399)
Oct 23, 2024
6a33974
Fix pyre errors in Integrated Gradients (#1398)
Oct 23, 2024
07cf6b2
Fix pyre errors in InputXGradient (#1397)
Oct 23, 2024
b2e4342
Fix pyre errors in GuidedGradCAM (#1396)
Oct 23, 2024
aa7d86c
Fix pyre errors in Guided Backprop (#1395)
Oct 23, 2024
b78b595
Fix pyre errors in GradientShap (#1394)
Oct 23, 2024
37be0de
Fix pyre errors in FeaturePermutation (#1393)
Oct 23, 2024
c5e44c8
Fix pyre errors in Feature Ablation (#1392)
Oct 23, 2024
d09d90f
Fix pyre errors in DeepLift (#1391)
Oct 23, 2024
b80e488
Fix pyre errors in Dataloader Attr (#1390)
Oct 23, 2024
e292a28
Reducing pyre-fixme's in visualization.py 2/n (#1385)
jjuncho Oct 23, 2024
e2c06ed
layer_integrated_gradients is too complex (#1407)
jjuncho Oct 23, 2024
0be76f9
Correct remaining typing.Literal imports (#1412)
craymichael Oct 24, 2024
568434a
Address Pyre FixMe's in layer_feature_permutation.py (#1409)
Ayush-Warikoo Oct 24, 2024
cbe45aa
Address Pyre FixMe's in layer_feature_ablation.py (#1411)
Ayush-Warikoo Oct 24, 2024
8437daf
Fix for automatic GitHub workflow reruns (#1419)
craymichael Oct 28, 2024
2c1c281
Add __call__ to TokenizerLike (#1418)
craymichael Oct 28, 2024
ad89e0b
Improve tokenizer pretty-pretty logic + __call__ method (#1417)
craymichael Oct 29, 2024
dff8473
Fix mypy issue in visualization.py (#1416)
craymichael Oct 29, 2024
2f2d40c
Remove mypy note from infidelity.py (#1415)
craymichael Oct 29, 2024
5d71cad
Fix remaining pyre errors in infidelity.py (#1414)
craymichael Oct 29, 2024
9af18bf
Fix kwargs annotation in feature_ablation.py (#1421)
craymichael Oct 29, 2024
638b920
Consolidate LLM attr logic (#1420)
craymichael Oct 29, 2024
492ae0e
LLM offsets logic consolidate w/ checks and test case fix (#1422)
craymichael Oct 29, 2024
07470af
Pyre fixes for common.py [3/n] (#1424)
csauper Oct 30, 2024
87a0a9e
Fix assorted unbound variables [4/n] (#1365)
csauper Oct 30, 2024
d9aa95d
Fix pyre errors in tracin (#1427)
csauper Oct 31, 2024
f3496d9
Improving typing of `additional_forward_args` (#1425)
craymichael Oct 31, 2024
d28efcd
Resolve C417 in tcav.py (#1426)
craymichael Oct 31, 2024
e8b6d98
Fix more influence functions [6/n] (#1428)
csauper Oct 31, 2024
fdb9e79
Support grad_kwargs in LayerIntegratedGradients (#1435)
craymichael Nov 7, 2024
7a12f69
Fix TCAV test cases for PyTorch 2.6.0 (#1436)
craymichael Nov 8, 2024
d241b2a
Disable pyre errors for metrics/_core (#1433)
cyrjano Nov 8, 2024
c3265aa
Disable pyre errors for _utils/common. (#1434)
cyrjano Nov 8, 2024
86af5e1
Remove unnecessary casts in test (#1431)
sarahtranfb Nov 11, 2024
69d6939
Disable the right line for pyre fixme (#1437)
cyrjano Nov 11, 2024
6540e74
Fix issues with `captum/insights/attr_vis/example.py` (#1432)
chillerb Nov 11, 2024
e3a3574
Fix or disabled pyre issues that show up after Pyre Update (#1438)
cyrjano Nov 12, 2024
30ac908
Add pyre fixme for downstream type errors from D65753120 (#1439)
ezyang Nov 12, 2024
11fea3d
Reapply manual changes that I accidentally clobbered in D65826205 (#1…
ezyang Nov 13, 2024
49b1ed4
Fix pyre error in _generate_baseline_single_dict_feature (#1441)
jsawruk Nov 14, 2024
e13cf8e
Fix typos in README (#1444)
craymichael Nov 15, 2024
72a32af
Update LLM attribution notebook (#1445)
craymichael Nov 15, 2024
478942d
Prepare for "Fix type-safety of `torch.nn.Module` instances": fbcode/…
ezyang Nov 21, 2024
ad77e79
Prepare for "Fix type-safety of `torch.nn.Module` instances": wave 2
ezyang Nov 21, 2024
92d82df
Fix pyre-fixmes in captum/attr/_utils/input_layer_wrapper.py (#1453)
styusuf Dec 11, 2024
2a2b41d
Fix flaky test_softmax_classification_batch_multi_target test case by…
craymichael Dec 12, 2024
2b9f4ae
Clean up pyre issues in tests/helpers/influence/common.py (#1455)
jsawruk Dec 12, 2024
ad6795b
Update minimum Python version for Captum to 3.9 (#1460)
Dec 23, 2024
9a7ef2e
Fix deeplift mypy error (#1459)
Dec 23, 2024
b600865
Fix neuron_integrated_gradients pyre fixme issues (#1457)
Dec 31, 2024
1473704
Fix neuron conductance pyre fixme issues (#1458)
Dec 31, 2024
1a59106
Fix neuron deep lift pyre fixme issues (#1461)
Dec 31, 2024
ff1c755
Fix neuron feature ablation pyre fixme issues (#1462)
Dec 31, 2024
27c2004
Fix neuron gradient shap pyre fixme issues (#1463)
Dec 31, 2024
57d1f93
Fix neuron gradient pyre fixme issues (#1464)
Dec 31, 2024
ff4bb4d
Fix neuron guided backprop pyre fixme issues (#1465)
Dec 31, 2024
5596f98
Fix gradcam pyre fixme issues (#1466)
Dec 31, 2024
7426175
Fix internal influence pyre fixme issues (#1467)
Dec 31, 2024
9934771
Fix layer activation pyre fixme issues (#1468)
Dec 31, 2024
5e7a7e7
Fix layer conductance pyre fixme issues (#1469)
Dec 31, 2024
fcc9d26
Fix layer deeplift pyre fixme issues (#1470)
Dec 31, 2024
0f50fa8
Fix layer gradient shap pyre fixme issues (#1471)
Dec 31, 2024
397d46f
Fix layer gradient x activation pyre fixme issues (#1472)
Dec 31, 2024
0025689
Fix layer LRP pyre fixme issues (#1474)
Dec 31, 2024
963587c
Fix approximation utils pyre fix me issues (#1475)
Dec 31, 2024
94177e6
Fix custom modules pyre fix me issues (#1476)
Dec 31, 2024
1e7d5ff
Fix class summarizer pyre fix me issues (#1477)
Dec 31, 2024
7c7a477
Fix summarizer pyre fix me issues (#1479)
Dec 31, 2024
1edeeca
Fix layer integrated gradients pyre fixme issues (#1473)
Dec 31, 2024
cd25fe8
Fix typing pyre fix me issues (#1480)
Dec 31, 2024
fecd10e
Fix test sensitivity pyre fix me issues (#1481)
Dec 31, 2024
d847549
Fix progress pyre fixme issues (#1482)
Dec 31, 2024
4b7879c
Moving the Influence test helper (#1484)
styusuf Jan 14, 2025
b487891
Moving the Base Test Helper (#1485)
styusuf Jan 16, 2025
a255953
Moving tests.attr.helpers to captum.testing.attr.helpers (#1492)
styusuf Jan 21, 2025
efe7908
Adding async future functionality to ShapleyValues (#1487)
jjuncho Jan 22, 2025
fc6df48
Add test coverage for futures in ShapleyValueSampling 1/n (#1491)
jjuncho Jan 22, 2025
11061d7
Add test coverage for futures in ShapleyValueSampling 2/n (#1490)
jjuncho Jan 22, 2025
63ead63
Add test coverage for futures in ShapleyValueSampling 3/n (#1489)
jjuncho Jan 22, 2025
fc9026a
Add test coverage for futures in ShapleyValueSampling 4/n (#1488)
jjuncho Jan 22, 2025
85630e5
Resolve all broken OSS test cases (#1502)
craymichael Feb 18, 2025
087325a
Bump tool.black python version to 3.9 (#1503)
craymichael Feb 18, 2025
0e70a12
Add additional keywords to setup.py (#1501)
craymichael Feb 19, 2025
649d82f
Reduce redundant major.minor specification in setup.py (#1500)
craymichael Feb 19, 2025
8a61aaf
Remove dated "beta" text in README (#1499)
craymichael Feb 19, 2025
c196342
Add Captum Insights deprecation message to README (#1498)
craymichael Feb 19, 2025
2bf8729
Update version to 0.8.0 (#1504)
craymichael Feb 19, 2025
fcc1933
Update conda build file with required build and run dependencies (#1506)
craymichael Feb 20, 2025
00325c8
Update LLM attr tutorial notebook with note on required Captum versio…
sarahtranfb Feb 20, 2025
bde33ee
Update setup.py classifier (Beta -> Stable) (#1508)
craymichael Feb 21, 2025
51f0f1c
Support feature grouping across input tensors for FeatureAblation (#1…
sarahtranfb Feb 21, 2025
96caad3
Support permuting across input tensors in FeaturePermutation (#1507)
sarahtranfb Feb 21, 2025
31e09c7
Update meta.yaml with description and BSD version (#1509)
craymichael Feb 21, 2025
6f0f748
Add necessary deps to environment.yml (#1510)
craymichael Feb 21, 2025
3188421
Add enable_cross_tensor_attribution tests to test_config (#1511)
sarahtranfb Feb 21, 2025
a799dfd
Fix Lime output dimension in batch forward (#1513)
Feb 27, 2025
b40db68
Fix socket timeout in test_data_parallel (#1522)
sarahtranfb Mar 5, 2025
c9688bb
Adding a new Module for unsupported layer. Adding test for unsupporte…
styusuf Mar 6, 2025
4ca5c2c
Enable aggregate mode for any case where perturbations_per_eval == 1 …
Mar 10, 2025
b917b2a
Avoid unnecessary tensor construction when creating input masks for p…
sarahtranfb Mar 13, 2025
215c907
Control for when output from model is a scalar or a 1D tensor (#1521)
styusuf Mar 18, 2025
b899732
Adding test for output that is a tensor of integers. Updating passthr…
styusuf Mar 18, 2025
f31e418
chore: add missing test dependencies (#1442)
drupol Mar 25, 2025
914b51f
Support multiple perturbations per eval when masking across tensors (…
sarahtranfb Mar 25, 2025
315a3d5
Adjust indices in LayerAttributor mask for individual neurons (#1531)
sarahtranfb Mar 25, 2025
2db93a7
Remove unneeded feature permutation utils
sarahtranfb Mar 28, 2025
7e3ebae
Merge pull request #635 from ProGamerGov/patch-22
ProGamerGov Mar 30, 2025
040ca9f
Merge pull request #636 from ProGamerGov/optim-wip-clip-vis
ProGamerGov Mar 30, 2025
b98c20e
Merge pull request #637 from ProGamerGov/optim-wip-clip-loss-objectives
ProGamerGov Mar 30, 2025
94b90d6
Merge pull request #638 from ProGamerGov/optim-wip-transparency
ProGamerGov Mar 30, 2025
a1e0633
Merge pull request #639 from ProGamerGov/optim-wip-loss-docs
ProGamerGov Mar 30, 2025
32e4f33
Merge pull request #642 from ProGamerGov/optim-wip-model-tutorial
ProGamerGov Mar 30, 2025
ebf133d
Merge pull request #643 from ProGamerGov/optim-wip-custom-modules
ProGamerGov Mar 30, 2025
613e052
Merge pull request #640 from ProGamerGov/optim-wip-version-check
ProGamerGov Mar 30, 2025
99d5b00
Merge branch 'master-0-new-1' into optim-wip-loss-testing
ProGamerGov Mar 30, 2025
7aec493
Merge pull request #641 from ProGamerGov/optim-wip-loss-testing
ProGamerGov Mar 30, 2025
067ee6c
Update setup.py
ProGamerGov Mar 30, 2025
b26d630
move test helpers
ProGamerGov Mar 30, 2025
4041121
Merge pull request #645 from ProGamerGov/master
ProGamerGov Mar 30, 2025
5c85308
Update basic_models.py
ProGamerGov Mar 30, 2025
45ae31c
Merge pull request #646 from ProGamerGov/optim-wip-linear-probes
ProGamerGov Mar 30, 2025
fa15008
Merge pull request #647 from ProGamerGov/optim-wip-feeling-wheel
ProGamerGov Mar 30, 2025
93d719e
Merge pull request #649 from ProGamerGov/optim-wip-minor-fixes
ProGamerGov Mar 30, 2025
af60e34
Merge pull request #650 from ProGamerGov/optim-wip-text-vis
ProGamerGov Mar 30, 2025
00de34d
Update loss.py
ProGamerGov Mar 30, 2025
845c0dc
Merge branch 'master-0-new-1' into optim-wip-more-sphinx-docs
ProGamerGov Mar 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
272 changes: 0 additions & 272 deletions .circleci/config.yml

This file was deleted.

17 changes: 13 additions & 4 deletions .conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -13,20 +13,29 @@ build:

requirements:
host:
- python>=3.6
- python>=3.9
- setuptools
run:
- numpy
- pytorch>=1.6
- numpy<2.0
- pytorch>=1.10
- matplotlib-base
- tqdm
- packaging

test:
imports:
- captum

about:
home: https://captum.ai
license: BSD
license: BSD-3
license_file: LICENSE
summary: Model interpretability for PyTorch
description: |
Captum is a model interpretability and understanding library for PyTorch.
Captum means comprehension in Latin and contains general purpose implementations
of integrated gradients, saliency maps, smoothgrad, vargrad and others for
PyTorch models. It has quick integration for models built with domain-specific
libraries such as torchvision, torchtext, and others.
doc_url: https://captum.ai
dev_url: https://github.com/pytorch/captum
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Captum Lint

on:
pull_request:
push:
branches:
- master

workflow_dispatch:

jobs:
tests:
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
runner: linux.12xlarge
docker-image: cimg/python:3.11
repository: pytorch/captum
script: |
sudo chmod -R 777 .
./scripts/install_via_pip.sh
ufmt check .
flake8
sphinx-build -WT --keep-going sphinx/source sphinx/build
26 changes: 26 additions & 0 deletions .github/workflows/retry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Rerun tests if failed
on:
workflow_run:
workflows: ["Unit-tests for Conda install", "Unit-tests for Pip install with mypy type checks", "Unit-tests for Pip install"]
types: ["completed"]

permissions:
actions: write

jobs:
rerun-tests:
runs-on: ubuntu-latest
steps:
- name: Log workflow metadata
run: |
echo "ID: ${{ github.event.workflow_run.id }}"
echo "attempt: ${{ github.event.workflow_run.run_attempt }}"
echo "event: ${{ github.event.workflow_run.conclusion }}"
echo "event: ${{ github.event.workflow_run.event }}"
- name: Rerun Failed Workflows
if: github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt <= 3
env:
GH_TOKEN: ${{ github.token }}
RUN_ID: ${{ github.event.workflow_run.id }}
run: |
gh run rerun ${RUN_ID} --repo="${{ github.repository }}" --failed
34 changes: 34 additions & 0 deletions .github/workflows/test-conda-cpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Unit-tests for Conda install

on:
pull_request:
push:
branches:
- master

workflow_dispatch:

env:
CHANNEL: "nightly"

jobs:
tests:
strategy:
matrix:
python_version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with:
runner: linux.12xlarge
repository: pytorch/captum
script: |
# Set up Environment Variables
export PYTHON_VERSION="${{ matrix.python_version }}"
# Create Conda Env
conda create -yp ci_env python="${PYTHON_VERSION}"
conda activate /pytorch/captum/ci_env
./scripts/install_via_conda.sh
# Run Tests
python3 -m pytest -ra --cov=. --cov-report term-missing
Loading