A GPT-2 based protein language model for designing proteins with specific properties. The models can be found on Hugging Face.
Clone this repository.
Install the required dependencies (pip install -r requirements.txt)
To generate sequences and run the inference pipeline, use python inference.py --model_path=path_to_model --num_return_sequences=num --max_length=max_len --starts_with=starting_sequence --output_dir=output_directory --pred_model_path=path_to_prediction_model --seed=random_seed
Hugging Face's run_clm.py script can be used to fine-tune the model on a custom dataset.
A GPT-2 based protein language model for designing proteins with specific properties. The models can be found on Hugging Face.
Clone this repository.
Install the required dependencies (pip install -r requirements.txt)
To generate sequences and run the inference pipeline, use python inference.py --model_path=path_to_model --num_return_sequences=num --max_length=max_len --starts_with=starting_sequence --output_dir=output_directory --pred_model_path=path_to_prediction_model --seed=random_seed
Hugging Face's run_clm.py script can be used to fine-tune the model on a custom dataset.