Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Youseob/PIN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PIN

Code for Hard Prompts Made Interpretable: Sparse Entropy Regularization for Prompt Tuning with RL

This code is built on the RLPrompt GitHub repository, which you can find "https://github.com/mingkaid/rl-prompt"

Setup Instructions

To use this code, you need the following versions of Python and PyTorch: Python >= 3.7 PyTorch >= 1.10.1 (install from the official website)

To install the core modules, run the following command:

pip install -e .

How to Use

Refer to the examples folder for implementations of the following tasks, as described in our paper:

  1. Few-shot classification
  2. Text style transfer
  3. Textual inversion from images

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages