Comments (2)
Currently it raises an Exception like Extension saving to kflr does not have an extension for Module <class 'torch.nn.modules.activation.Softmax'>
:(
from laplace.
@youkaichao Thanks for letting us know -- this exception comes from the BackPACK backend we're using to compute second-order information; not sure if the ASDL backend throws an exception when using a softmax model (I'd assume it does not).
For now, just make sure that the MAP model does not have a softmax layer at the end for the library to work properly.
from laplace.
Related Issues (20)
- test_full_hess_curvlinops_vs_asdl of "regression" loss failed in Python 3.11 HOT 2
- Laplace Transform and Inverse laplace Transform for 2D images HOT 2
- Remove default `loss` for `optimize_prior_precision`
- Make try-except statement in `_gridsearch` more specific HOT 1
- Serialization: `torch.load(..., map_location="cpu")` doesn't map all tensors in `Laplace` instance HOT 2
- Make `torchmetrics` metrics the default in cross validation
- Efficient LLLA predictive samples
- Support for `torchtune`'s models and datasets
- Conform to PyTorch convention in the loss HOT 1
- Cache features in LLLA with MC predictive HOT 1
- Generalized dict-input mechanism
- Add example & doc for reward modeling functionality
- Handle feature reduction properly in LLLA
- Adding prior precision in `KronLaplace` is broken
- Support for structured Kronecker factors HOT 1
- Fast `KronLLLaplace` joint predictive
- Handle logits with more than 2 axes in `torch.func` diag and full backends
- Fix all linting issues and format all files with `ruff`
- Prior precision and prior mean of `LLLaplace` are hardcoded HOT 2
- `torch.func` jacobian OOM HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laplace.