MCPcopy Index your code
hub / github.com/thunlp/OpenPrompt / 2.1_conditional_generation.py

File 2.1_conditional_generation.py

tutorial/2.1_conditional_generation.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1
2# # Conditional Generation with Prefix Tuning.
3# In this tutorial, we do conditional generation with prefix tuning template.
4

Callers

nothing calls this directly

Calls 12

WebNLGProcessorClass · 0.90
load_plmFunction · 0.90
PromptDataLoaderClass · 0.90
PromptForGenerationClass · 0.90
cudaMethod · 0.80
trainMethod · 0.80
evaluateFunction · 0.70
get_train_examplesMethod · 0.45
get_dev_examplesMethod · 0.45
get_test_examplesMethod · 0.45
wrap_one_exampleMethod · 0.45

Tested by

no test coverage detected