Add behavioral cloning step#560
Conversation
| --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 \ |
There was a problem hiding this comment.
we probably want more steps and perturbations. or you mean to bump these later?
There was a problem hiding this comment.
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?
| --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 \ |
There was a problem hiding this comment.
remove comment or keep the line?
| @@ -0,0 +1,317 @@ | |||
| #!/bin/bash | |||
| --llvm_objcopy_path /work/llvm-train/bin/llvm-objcopy \ | ||
| --obj_base_dir /work/llvm-corpus | ||
| --obj_base_dir /work/llvm-corpus \ | ||
| # --num_workers=4 |
16a778e to
f70a56e
Compare
f70a56e to
36ab923
Compare
36ab923 to
06a1897
Compare
|
overall lgtm, but remove commented lines (the ones that if uncommented would change a flag, specifically.) |
boomanaiden154
left a comment
There was a problem hiding this comment.
LGTM minus two nits.
|
|
||
| ## 1. Build the Docker Image | ||
|
|
||
| From the repository root, build the development environment container: |
There was a problem hiding this comment.
Nit: s/development/demo or something.
Development environment to me means experiment/docker/development.Dockerfile.
| 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 \ |
There was a problem hiding this comment.
Sudo here but not above? We should probably omit it here.
No description provided.