Skip to content

Subtree removal and adding Cu Inj and FACET models#30

Open
bhardwaj-gopika wants to merge 4 commits into
slaclab:mainfrom
bhardwaj-gopika:main
Open

Subtree removal and adding Cu Inj and FACET models#30
bhardwaj-gopika wants to merge 4 commits into
slaclab:mainfrom
bhardwaj-gopika:main

Conversation

@bhardwaj-gopika
Copy link
Copy Markdown
Contributor

@bhardwaj-gopika bhardwaj-gopika commented May 1, 2026

  1. Removed the LCLS Cu injector subtree from this repo and switched the Cu injector surrogate to use the installable package instead of loading model assets from local checked-in files.

  2. Added a new FACET-II injector surrogate wrapper that loads the packaged FACET model and exposes beam output through the existing covariance-to-particle wrapper.

  3. Added a FACET staged-model factory scaffold alongside the existing CU staged model, plus a placeholder FACET BMAD entrypoint for the future BMAD implementation.

"""Initialize surrogate model and internal cache copy."""
super().__init__()
tm = self._load_torch_model()
tm = load_model(use_cpu=True)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can remove use_cpu now

@pluflou
Copy link
Copy Markdown
Collaborator

pluflou commented May 5, 2026

Let's await until Ryan finishes the facet implementation, rebase, then I can do a thorough review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants