Instructions to use ZhweCheng/cUTRGen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ZhweCheng/cUTRGen with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ZhweCheng/cUTRGen", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload cUTRGen inference checkpoints
Browse files- c3UTRGen-RL/config.json +29 -0
- c3UTRGen-RL/generation_config.json +8 -0
- c3UTRGen-RL/model.safetensors +3 -0
- c3UTRGen-pretrained/config.json +29 -0
- c3UTRGen-pretrained/generation_config.json +8 -0
- c3UTRGen-pretrained/model.safetensors +3 -0
- c5UTRGen-RL/config.json +22 -0
- c5UTRGen-RL/model.safetensors +3 -0
- c5UTRGen-pretrained/config.json +22 -0
- c5UTRGen-pretrained/model.safetensors +3 -0
- full-length-RL/policy_3utr/config.json +30 -0
- full-length-RL/policy_3utr/generation_config.json +8 -0
- full-length-RL/policy_3utr/model.safetensors +3 -0
- full-length-RL/policy_5utr/config.json +30 -0
- full-length-RL/policy_5utr/generation_config.json +8 -0
- full-length-RL/policy_5utr/model.safetensors +3 -0
c3UTRGen-RL/config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"T5ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"classifier_dropout": 0.0,
|
| 6 |
+
"d_ff": 3072,
|
| 7 |
+
"d_kv": 64,
|
| 8 |
+
"d_model": 768,
|
| 9 |
+
"decoder_start_token_id": 0,
|
| 10 |
+
"dense_act_fn": "gelu_new",
|
| 11 |
+
"dropout_rate": 0.1,
|
| 12 |
+
"eos_token_id": 2,
|
| 13 |
+
"feed_forward_proj": "gated-gelu",
|
| 14 |
+
"initializer_factor": 1.0,
|
| 15 |
+
"is_encoder_decoder": true,
|
| 16 |
+
"is_gated_act": true,
|
| 17 |
+
"layer_norm_epsilon": 1e-06,
|
| 18 |
+
"model_type": "t5",
|
| 19 |
+
"num_decoder_layers": 12,
|
| 20 |
+
"num_heads": 12,
|
| 21 |
+
"num_layers": 12,
|
| 22 |
+
"pad_token_id": 0,
|
| 23 |
+
"relative_attention_max_distance": 128,
|
| 24 |
+
"relative_attention_num_buckets": 32,
|
| 25 |
+
"torch_dtype": "float32",
|
| 26 |
+
"transformers_version": "4.46.1",
|
| 27 |
+
"use_cache": false,
|
| 28 |
+
"vocab_size": 75
|
| 29 |
+
}
|
c3UTRGen-RL/generation_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"decoder_start_token_id": 0,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "4.46.1",
|
| 7 |
+
"use_cache": false
|
| 8 |
+
}
|
c3UTRGen-RL/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:14b697edaf4d2d4ee1837079e4d3bea65cda5d627e5b6595d712b4d24627a548
|
| 3 |
+
size 1019673384
|
c3UTRGen-pretrained/config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"T5ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"classifier_dropout": 0.0,
|
| 6 |
+
"d_ff": 3072,
|
| 7 |
+
"d_kv": 64,
|
| 8 |
+
"d_model": 768,
|
| 9 |
+
"decoder_start_token_id": 0,
|
| 10 |
+
"dense_act_fn": "gelu_new",
|
| 11 |
+
"dropout_rate": 0.1,
|
| 12 |
+
"eos_token_id": 2,
|
| 13 |
+
"feed_forward_proj": "gated-gelu",
|
| 14 |
+
"initializer_factor": 1.0,
|
| 15 |
+
"is_encoder_decoder": true,
|
| 16 |
+
"is_gated_act": true,
|
| 17 |
+
"layer_norm_epsilon": 1e-06,
|
| 18 |
+
"model_type": "t5",
|
| 19 |
+
"num_decoder_layers": 12,
|
| 20 |
+
"num_heads": 12,
|
| 21 |
+
"num_layers": 12,
|
| 22 |
+
"pad_token_id": 0,
|
| 23 |
+
"relative_attention_max_distance": 128,
|
| 24 |
+
"relative_attention_num_buckets": 32,
|
| 25 |
+
"torch_dtype": "float32",
|
| 26 |
+
"transformers_version": "4.46.1",
|
| 27 |
+
"use_cache": false,
|
| 28 |
+
"vocab_size": 75
|
| 29 |
+
}
|
c3UTRGen-pretrained/generation_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"decoder_start_token_id": 0,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "4.46.1",
|
| 7 |
+
"use_cache": false
|
| 8 |
+
}
|
c3UTRGen-pretrained/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f04d33fd1b4593fe6ff10de2ce7cd74506cbf76ccd5b5e6946029bb253745cdf
|
| 3 |
+
size 1019673384
|
c5UTRGen-RL/config.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"T5ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"d_ff": 3072,
|
| 6 |
+
"d_kv": 64,
|
| 7 |
+
"d_model": 768,
|
| 8 |
+
"eos_token_id": 2,
|
| 9 |
+
"decoder_start_token_id": 0,
|
| 10 |
+
"feed_forward_proj": "gated-gelu",
|
| 11 |
+
"is_encoder_decoder": true,
|
| 12 |
+
"layer_norm_epsilon": 1e-06,
|
| 13 |
+
"model_type": "t5",
|
| 14 |
+
"num_decoder_layers": 12,
|
| 15 |
+
"num_heads": 12,
|
| 16 |
+
"num_layers": 12,
|
| 17 |
+
"pad_token_id": 0,
|
| 18 |
+
"relative_attention_max_distance": 128,
|
| 19 |
+
"relative_attention_num_buckets": 32,
|
| 20 |
+
"vocab_size": 75,
|
| 21 |
+
"use_cache": false
|
| 22 |
+
}
|
c5UTRGen-RL/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:990dab53cc9133e5307b0713473e76e47a7d6fedd5e8e6a4eb0e29cd9ee8d17f
|
| 3 |
+
size 1019673384
|
c5UTRGen-pretrained/config.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"T5ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"d_ff": 3072,
|
| 6 |
+
"d_kv": 64,
|
| 7 |
+
"d_model": 768,
|
| 8 |
+
"eos_token_id": 2,
|
| 9 |
+
"decoder_start_token_id": 0,
|
| 10 |
+
"feed_forward_proj": "gated-gelu",
|
| 11 |
+
"is_encoder_decoder": true,
|
| 12 |
+
"layer_norm_epsilon": 1e-06,
|
| 13 |
+
"model_type": "t5",
|
| 14 |
+
"num_decoder_layers": 12,
|
| 15 |
+
"num_heads": 12,
|
| 16 |
+
"num_layers": 12,
|
| 17 |
+
"pad_token_id": 0,
|
| 18 |
+
"relative_attention_max_distance": 128,
|
| 19 |
+
"relative_attention_num_buckets": 32,
|
| 20 |
+
"vocab_size": 75,
|
| 21 |
+
"use_cache": false
|
| 22 |
+
}
|
c5UTRGen-pretrained/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d265b18ecff9bd3319a88b7d98cb6085d956bed281a51f603b6e8e974aa01fde
|
| 3 |
+
size 1019673384
|
full-length-RL/policy_3utr/config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"T5ForConditionalGeneration"
|
| 5 |
+
],
|
| 6 |
+
"classifier_dropout": 0.0,
|
| 7 |
+
"d_ff": 3072,
|
| 8 |
+
"d_kv": 64,
|
| 9 |
+
"d_model": 768,
|
| 10 |
+
"decoder_start_token_id": 0,
|
| 11 |
+
"dense_act_fn": "gelu_new",
|
| 12 |
+
"dropout_rate": 0.1,
|
| 13 |
+
"eos_token_id": 2,
|
| 14 |
+
"feed_forward_proj": "gated-gelu",
|
| 15 |
+
"initializer_factor": 1.0,
|
| 16 |
+
"is_encoder_decoder": true,
|
| 17 |
+
"is_gated_act": true,
|
| 18 |
+
"layer_norm_epsilon": 1e-06,
|
| 19 |
+
"model_type": "t5",
|
| 20 |
+
"num_decoder_layers": 12,
|
| 21 |
+
"num_heads": 12,
|
| 22 |
+
"num_layers": 12,
|
| 23 |
+
"pad_token_id": 0,
|
| 24 |
+
"relative_attention_max_distance": 128,
|
| 25 |
+
"relative_attention_num_buckets": 32,
|
| 26 |
+
"torch_dtype": "float32",
|
| 27 |
+
"transformers_version": "4.32.0",
|
| 28 |
+
"use_cache": false,
|
| 29 |
+
"vocab_size": 75
|
| 30 |
+
}
|
full-length-RL/policy_3utr/generation_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"decoder_start_token_id": 0,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "4.32.0",
|
| 7 |
+
"use_cache": false
|
| 8 |
+
}
|
full-length-RL/policy_3utr/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f577e0c5e823b168a9a9efa3f3c29e35319ddfba2dcbde2d9f746e251a48f6c
|
| 3 |
+
size 1019673384
|
full-length-RL/policy_5utr/config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"T5ForConditionalGeneration"
|
| 5 |
+
],
|
| 6 |
+
"classifier_dropout": 0.0,
|
| 7 |
+
"d_ff": 3072,
|
| 8 |
+
"d_kv": 64,
|
| 9 |
+
"d_model": 768,
|
| 10 |
+
"decoder_start_token_id": 0,
|
| 11 |
+
"dense_act_fn": "gelu_new",
|
| 12 |
+
"dropout_rate": 0.1,
|
| 13 |
+
"eos_token_id": 2,
|
| 14 |
+
"feed_forward_proj": "gated-gelu",
|
| 15 |
+
"initializer_factor": 1.0,
|
| 16 |
+
"is_encoder_decoder": true,
|
| 17 |
+
"is_gated_act": true,
|
| 18 |
+
"layer_norm_epsilon": 1e-06,
|
| 19 |
+
"model_type": "t5",
|
| 20 |
+
"num_decoder_layers": 12,
|
| 21 |
+
"num_heads": 12,
|
| 22 |
+
"num_layers": 12,
|
| 23 |
+
"pad_token_id": 0,
|
| 24 |
+
"relative_attention_max_distance": 128,
|
| 25 |
+
"relative_attention_num_buckets": 32,
|
| 26 |
+
"torch_dtype": "float32",
|
| 27 |
+
"transformers_version": "4.32.0",
|
| 28 |
+
"use_cache": false,
|
| 29 |
+
"vocab_size": 75
|
| 30 |
+
}
|
full-length-RL/policy_5utr/generation_config.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"decoder_start_token_id": 0,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "4.32.0",
|
| 7 |
+
"use_cache": false
|
| 8 |
+
}
|
full-length-RL/policy_5utr/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d083481dd2397d63010083a812af87003a2dad58bf8a475c43f522dc8dd23195
|
| 3 |
+
size 1019673384
|