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

Feat/ignite #1223

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open

Feat/ignite #1223

wants to merge 19 commits into from

Conversation

sebffischer
Copy link
Collaborator

@sebffischer sebffischer commented Dec 23, 2024

Supersedes #1215

TODOs:

  • The compiler complains about returning the adamw_options custom struct, so maybe we also need to wrap it in a void*
  • Implement the remaining optimizers
  • check that initial values for optimizer options are specified correctly
  • make the test for adamw generic and apply it to all optimizers
  • More tests:
    • parameters are cloned when loaded
    • loading existing state dict is equal to not doing anything (optimized weights are the same)

@sebffischer
Copy link
Collaborator Author

@dfalbel can you tag this with 'lantern' again please?

@dfalbel dfalbel added the lantern Use this label if your PR affects lantern so it's built in the CI label Jan 3, 2025
@dfalbel
Copy link
Member

dfalbel commented Jan 3, 2025

@sebffischer Sorry for the delay! Just tagged !

R/nn.R Outdated Show resolved Hide resolved
src/Makevars.in Outdated
@@ -11,7 +11,7 @@ all: $(LANTERN_TARGET) $(SHLIB) rename
lantern:
@echo "*** Building lantern!"
mkdir -p ../build-lantern
cd ../build-lantern && cmake ../src/lantern -DCMAKE_INSTALL_PREFIX=$(PKG_PATH) -DCMAKE_INSTALL_MESSAGE="LAZY" @CMAKE_FLAGS@ && cmake --build . --target install --config Release
cd ../build-lantern && cmake ../src/lantern -DCMAKE_INSTALL_PREFIX=$(PKG_PATH) -DCMAKE_INSTALL_MESSAGE="LAZY" @CMAKE_FLAGS@ && cmake --build . --parallel 8 --target install --config Release
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this still needs to be undone

@@ -92,6 +92,10 @@ void* Argument (const std::vector<c10::Argument>& x);
void* FunctionSchema (const std::vector<c10::FunctionSchema>& x);
} // namespace vector

// namespace optim {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to be removed

@@ -481,6 +485,12 @@ void* FunctionSchema (const std::vector<c10::FunctionSchema>& x) { return make_p

} // namespace vector

// namespace optim {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to be removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lantern Use this label if your PR affects lantern so it's built in the CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants