Skip to content

Feat/speedup base method - #119

Open
marie-minaeva wants to merge 3 commits into
feat/setup-repositoryfrom
feat/speedup_base_method
Open

Feat/speedup base method#119
marie-minaeva wants to merge 3 commits into
feat/setup-repositoryfrom
feat/speedup_base_method

Conversation

@marie-minaeva

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings July 23, 2026 13:29
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR optimizes tensor conversion paths in the Torch backend base method and adjusts benchmark/documentation assets (removing a toy notebook and adding a benchmark training config).

Changes:

  • Optimized BatchMixin/StateDatatorch.Tensor conversions by combining dtype/device transfers and using torch.as_tensor.
  • Removed docs/notebooks/try_cfm_toy.ipynb.
  • Added benchmark/train_config.yaml for benchmark runs.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/sc_flow/backends/torch/methods/_base.py Speeds up numpy→torch conversion by combining .to() calls and using as_tensor.
docs/notebooks/try_cfm_toy.ipynb Removes a toy notebook artifact.
benchmark/train_config.yaml Introduces a benchmark config file (currently mismatched to in-repo API parameter names).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +73 to +74
# torch.as_tensor is often safer/faster than from_numpy if
# the input might already be a tensor
Comment on lines +16 to +19
# Probability Path Configuration
# Options: "schrodinger_bridge", "linear_gaussian", "linear_dirac", "variance_preserving_dirac"
probability_path_id: "linear_dirac"
probability_path_sigma: 0.1
Comment on lines +32 to +36
# Hyperparameters
training:
batch_size: 256
lr: 0.0001
n_train_steps: 1000
@lorenzo-consoli
lorenzo-consoli deleted the branch feat/setup-repository July 30, 2026 15:25
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.

3 participants