Coder Social home page Coder Social logo

Comments (2)

XiangLi1999 avatar XiangLi1999 commented on July 24, 2024 1

Hi,

Thanks for the question.
You need to first train a classifier using this command:
python train_run.py --experiment e2e-back --app "--init_emb diff_e2e-tgt_pad_rand16_transformer_lr0.0001_0.0_2000_sqrt_Lsimple_h128_s2_d0.1_sd102_xstart_e2e --n_embd 16 --learned_emb yes " --notes "full_multi_sqrt_16" --epoch 6 --bsz 10

[you might want to modify the --init_emb command, which is the path to your diffusion model, Or you can download it here: https://drive.google.com/drive/folders/110CA22rwu_3EcllPYGhql0TnYeOBY77d and set init_emb to this path. ]

Then to execute the controllable generation:

python scripts/infill.py --model_path /u/scr/nlp/xlisali/predictability/diffusion_models_ablations/diff_e2e-tgt_pad_rand16_transformer_lr0.0001_0.0_2000_sqrt_Lsimple_h128_s2_d0.1_sd102_xstart_e2e/ema_0.9999_200000.pt --eval_task_ 'control_attribute' --use_ddim True --notes "tree_full_adagrad" --eta 1. --verbose pipe --lr_coef 0.0005

Again, you might want to change the model_path to the diffusion path.

Hope this helps!

from diffusion-lm.

W-caner avatar W-caner commented on July 24, 2024

Hi,

Thanks for the question. You need to first train a classifier using this command: python train_run.py --experiment e2e-back --app "--init_emb diff_e2e-tgt_pad_rand16_transformer_lr0.0001_0.0_2000_sqrt_Lsimple_h128_s2_d0.1_sd102_xstart_e2e --n_embd 16 --learned_emb yes " --notes "full_multi_sqrt_16" --epoch 6 --bsz 10

[you might want to modify the --init_emb command, which is the path to your diffusion model, Or you can download it here: https://drive.google.com/drive/folders/110CA22rwu_3EcllPYGhql0TnYeOBY77d and set init_emb to this path. ]

Then to execute the controllable generation:

python scripts/infill.py --model_path /u/scr/nlp/xlisali/predictability/diffusion_models_ablations/diff_e2e-tgt_pad_rand16_transformer_lr0.0001_0.0_2000_sqrt_Lsimple_h128_s2_d0.1_sd102_xstart_e2e/ema_0.9999_200000.pt --eval_task_ 'control_attribute' --use_ddim True --notes "tree_full_adagrad" --eta 1. --verbose pipe --lr_coef 0.0005

Again, you might want to change the model_path to the diffusion path.

Hope this helps!

Helps a lot !

But I still need some help.馃槶

I don't know how to train my own diffusion model for this task, is it the same command as
"python scripts/run_train.py --diff_steps 2000 --model_arch transformer --lr 0.0001 --lr_anneal_steps 200000 --seed 102 --noise_schedule sqrt --in_channel 16 --modality e2e-tgt --submit no --padding_mode block --app "--predict_xstart True --training_mode e2e --vocab_size 821 --e2e_train ../datasets/e2e_data " --notes xstart_e2e"
in README?

Specifically, do some configs need to be changed, such as training_mode or the modality, if so, what should they be changed?

Thanks again!

from diffusion-lm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google 鉂わ笍 Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.