Skip to content

Add behavioral cloning step#560

Open
beamandala wants to merge 1 commit into
google:mainfrom
beamandala:bhavesh/complete-demo
Open

Add behavioral cloning step#560
beamandala wants to merge 1 commit into
google:mainfrom
beamandala:bhavesh/complete-demo

Conversation

@beamandala
Copy link
Copy Markdown

No description provided.

Comment thread docs/llvm/train_with_es.sh Outdated
--gin_bindings inlining.config.get_observation_processing_layer_creator.quantile_file_dir="'/work/corpus/vocab'" \
--gin_bindings pretrained_policy_path="'/work/corpus/bc_model/saved_policy'" \
--output_path /work/corpus/trained_model_es
# --gin_bindings BlackboxLearnerConfig.total_steps=2 \
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.

we probably want more steps and perturbations. or you mean to bump these later?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I left most variables unpopulated under the assumption that the defaults were good enough. Are they not? If they're not good enough what do you recommend?

Comment thread docs/llvm/train_bc.sh Outdated
--root_dir /work/corpus/bc_model \
--gin_files /work/ml-compiler-opt/compiler_opt/rl/inlining/gin_configs/behavioral_cloning_nn_agent.gin \
--gin_bindings inlining.config.get_observation_processing_layer_creator.quantile_file_dir="'/work/corpus/vocab'" \
# --gin_bindings train_eval.num_iterations=5000 \
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.

remove comment or keep the line?

Comment thread docs/llvm/evaluate_model.sh Outdated
@@ -0,0 +1,317 @@
#!/bin/bash
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.

was this file intended?

Comment thread docs/llvm/extract_corpus.sh Outdated
--llvm_objcopy_path /work/llvm-train/bin/llvm-objcopy \
--obj_base_dir /work/llvm-corpus
--obj_base_dir /work/llvm-corpus \
# --num_workers=4
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.

remove the change?

@beamandala beamandala force-pushed the bhavesh/complete-demo branch from 16a778e to f70a56e Compare June 1, 2026 20:41
@beamandala beamandala marked this pull request as ready for review June 1, 2026 20:41
@beamandala beamandala force-pushed the bhavesh/complete-demo branch from f70a56e to 36ab923 Compare June 1, 2026 20:42
@beamandala beamandala force-pushed the bhavesh/complete-demo branch from 36ab923 to 06a1897 Compare June 1, 2026 20:43
@beamandala beamandala changed the title Add behavioral cloning step, evaluation script Add behavioral cloning step Jun 2, 2026
@mtrofin
Copy link
Copy Markdown
Collaborator

mtrofin commented Jun 2, 2026

overall lgtm, but remove commented lines (the ones that if uncommented would change a flag, specifically.)

@mtrofin mtrofin requested a review from boomanaiden154 June 2, 2026 03:20
Copy link
Copy Markdown
Collaborator

@boomanaiden154 boomanaiden154 left a comment

Choose a reason for hiding this comment

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

LGTM minus two nits.

Comment thread docs/llvm/README.md

## 1. Build the Docker Image

From the repository root, build the development environment container:
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.

Nit: s/development/demo or something.

Development environment to me means experiment/docker/development.Dockerfile.

Comment thread docs/llvm/README.md
Run the container with volume mounts to persist corpus data, training logs, and checkpoints locally. This enables running TensorBoard on the host to monitor training.

```bash
sudo docker run -it \
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.

Sudo here but not above? We should probably omit it here.

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