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

Learner test build #75

Merged
merged 13 commits into from
Jan 31, 2025
Merged

Learner test build #75

merged 13 commits into from
Jan 31, 2025

Conversation

mathysgrapotte
Copy link
Owner

added test for learner and made sur it runs end to end,
TODO: add proper debugging tool to assess size missmatch

validation=TorchDataset(
config_path=config_path,
csv_path=data_path,
# Configure trainable with resources and dataset parameters
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't remember exactly why, but I think initially I put them here to avoid the need for reencoding each time it is tuned.

@@ -138,13 +139,31 @@ def tuner_initialization(

logging.info(f"PER_TRIAL resources -> GPU: {self.gpu_per_trial} CPU: {self.cpu_per_trial}")

# Pre-load and encode datasets once, then put them in Ray's object store
@ray.remote
Copy link
Collaborator

Choose a reason for hiding this comment

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

ahhh so ray.remote is the correct way to do it :)


# Put datasets in Ray's object store
datasets_ref = create_datasets.remote(data_config_path, data_path, encoder_loader)
self.config["_training_ref"] = training_ref
Copy link
Collaborator

Choose a reason for hiding this comment

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

i like how your thought process evolved and went back XD
Btw, why you chose to use config again, instead of remote function?

Copy link
Collaborator

@suzannejin suzannejin left a comment

Choose a reason for hiding this comment

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

lgtm :)

@mathysgrapotte mathysgrapotte merged commit 22515ee into dev Jan 31, 2025
14 checks passed
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