ApolloResearch / rib

Library for methods related to the Local Interaction Basis (LIB)
MIT License
2 stars 0 forks source link

Update tlens and misc config settings #222

Closed danbraunai-apollo closed 10 months ago

danbraunai-apollo commented 10 months ago

Update tlens and misc config settings

Description

Related Issue

Closes #217; Closes #216; Closes #205 (@nix-apollo please confirm, I think this issue may have been caused by the IGNORE that was too large?).

Motivation and Context

Having the old INGORE=1e-5 caused issues in both transformerlens and also in RIB tests (requiring much larger atols in tests). The other changes are also likely to improve any precision issues we have.

How Has This Been Tested?

Updated tests to point to the new modular arithmetic graphs. Same tests pass.

Does this PR introduce a breaking change?

Technically no. But everybody please reinstall the package that has an updated requirements.txt, otherwise things will break.

float32 vs float64 modular arithmetic graph build

modular_arithmetic_rib_graph modular_arithmetic_fp32_rib_graph

nix-apollo commented 10 months ago

Imported updated requirements and ran tests successfully.

nix-apollo commented 10 months ago

I confirm this should close #205

nix-apollo commented 10 months ago

I assume you are planning to put the change to the default value of eps in a different PR?

danbraunai-apollo commented 10 months ago

I assume you are planning to put the change to the default value of eps in a different PR?

Yep will do. Just made an issue for it https://github.com/ApolloResearch/rib/issues/224.