ONNX Model Zoo

Esperanto/Protein-Llama-3-8B-kvc-fp16-onnx

By Esperanto · ↓ 7 · ♥ 0 · Updated 2024-12-05

What's in this repo

This page lists the files in Esperanto/Protein-Llama-3-8B-kvc-fp16-onnx, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 494 files, including 66 .weight, 5 .json, 1 .md, 1 .onnx
  • Last updated 2024-12-05

ONNX files

File Size Download
model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

Model Details

Protein-Llama-3-8B is a specialized version of the Llama-3-8B language model, fine-tuned for the task of protein language modeling. This model has been continually pre-trained using LoRA technique on extensive datasets of protein sequences, enabling it to generate novel protein sequences based on natural language prompts. It supports both uncontrollable and controllable protein generation, allowing users to specify desired characteristics for the proteins. The model is designed to facilitate advancements in protein engineering, making it a valuable tool for drug development, chemical synthesis, and other biotechnological applications. For full details please read our paper. This is the ONNX version of the model in fp16 precision with KVC.

Model Description

Generating novel protein sequences possessing desired properties, termed as protein engineering, is crucial for industries like drug development and chemical synthesis. Traditional protein engineering techniques often involve introducing random mutations into the gene encoding the protein of interest. This is followed by expression and screening to identify variants with improved or novel functions, which are then reproduced. While effective, these approaches are labor-intensive and time-consuming, as they rely on iterating over known protein sequences. This limits their ability to generate diverse protein sequences with entirely new capabilities, as they are constrained by existing protein templates. Moreover, the need to analyze numerous protein variants can waste valuable experimental resources. However, leveraging a Large Language Model (LLM) that has learned the "protein language" significantly accelerates this process. An LLM can generate and evaluate protein sequences in a matter of seconds. The inherent randomness of LLM-generated sequences enhances diversity, enabling the creation of completely novel proteins with potentially unprecedented functions. This not only streamlines the discovery and development process but also expands the scope of possibilities in protein engineering. This model is based on the Llama-3-8B architecture and is capable of generating proteins based on user defined characteristics.

Energy Efficient Protein Language Models: Leveraging Small Language Models with LoRA for Controllable Protein Generation

Usage

To download and use the Protein-Llama-3 model for inference, follow these steps:

Installation

Ensure you have the transformers library installed. You can install it using pip:

pip install transformers

Uncontrollable Generation

Uncontrollable generation can be handled via prompting the model with the phrase 'Seq=<'.

generator = pipeline('text-generation', model="Esperanto/Protein-Llama-3-8B")

sequences = generator("Seq=<",temperature=0.2,
    top_k=40,
    top_p=0.9,
    do_sample=True,
    repetition_penalty=1.2,
    max_new_tokens=30,
    num_return_sequences=500)

for sequence in sequences:
    print(sequence['generated_text'])

Controllable Generation

Controllable generation can be done by prompting the model with '[Generate xxx protein] Seq=<'. Here, xxx can be any family from the 10 classes supported by this model.

generator = pipeline('text-generation', model="Esperanto/Protein-Llama-3-8B")

sequences = generator("[Generate Ligase enzyme protein] Seq=<",temperature=0.2,
    top_k=40,
    top_p=0.9,
    do_sample=True,
    repetition_penalty=1.2,
    max_new_tokens=30,
    num_return_sequences=500)

for sequence in sequences:
    print(sequence['generated_text'])

Contributors

Aayush Shah, Shankar Jayaratnam

Model info

transformers
transformers onnx biology medical arxiv:2411.05966 base_model:Esperanto/Protein-Llama-3-8B base_model:quantized:Esperanto/Protein-Llama-3-8B endpoints_compatible region:us
↓ 7 ♥ 0

Created: 2024-11-13

Updated: 2024-12-05

View on Hugging Face

Files (494)

.gitattributes
README.md
config.json
model.embed_tokens.weight
model.layers.0.input_layernorm.weight
model.layers.0.post_attention_layernorm.weight
model.layers.1.input_layernorm.weight
model.layers.1.post_attention_layernorm.weight
model.layers.10.input_layernorm.weight
model.layers.10.post_attention_layernorm.weight
model.layers.11.input_layernorm.weight
model.layers.11.post_attention_layernorm.weight
model.layers.12.input_layernorm.weight
model.layers.12.post_attention_layernorm.weight
model.layers.13.input_layernorm.weight
model.layers.13.post_attention_layernorm.weight
model.layers.14.input_layernorm.weight
model.layers.14.post_attention_layernorm.weight
model.layers.15.input_layernorm.weight
model.layers.15.post_attention_layernorm.weight
model.layers.16.input_layernorm.weight
model.layers.16.post_attention_layernorm.weight
model.layers.17.input_layernorm.weight
model.layers.17.post_attention_layernorm.weight
model.layers.18.input_layernorm.weight
model.layers.18.post_attention_layernorm.weight
model.layers.19.input_layernorm.weight
model.layers.19.post_attention_layernorm.weight
model.layers.2.input_layernorm.weight
model.layers.2.post_attention_layernorm.weight
model.layers.20.input_layernorm.weight
model.layers.20.post_attention_layernorm.weight
model.layers.21.input_layernorm.weight
model.layers.21.post_attention_layernorm.weight
model.layers.22.input_layernorm.weight
model.layers.22.post_attention_layernorm.weight
model.layers.23.input_layernorm.weight
model.layers.23.post_attention_layernorm.weight
model.layers.24.input_layernorm.weight
model.layers.24.post_attention_layernorm.weight
model.layers.25.input_layernorm.weight
model.layers.25.post_attention_layernorm.weight
model.layers.26.input_layernorm.weight
model.layers.26.post_attention_layernorm.weight
model.layers.27.input_layernorm.weight
model.layers.27.post_attention_layernorm.weight
model.layers.28.input_layernorm.weight
model.layers.28.post_attention_layernorm.weight
model.layers.29.input_layernorm.weight
model.layers.29.post_attention_layernorm.weight
model.layers.3.input_layernorm.weight
model.layers.3.post_attention_layernorm.weight
model.layers.30.input_layernorm.weight
model.layers.30.post_attention_layernorm.weight
model.layers.31.input_layernorm.weight
model.layers.31.post_attention_layernorm.weight
model.layers.4.input_layernorm.weight
model.layers.4.post_attention_layernorm.weight
model.layers.5.input_layernorm.weight
model.layers.5.post_attention_layernorm.weight
model.layers.6.input_layernorm.weight
model.layers.6.post_attention_layernorm.weight
model.layers.7.input_layernorm.weight
model.layers.7.post_attention_layernorm.weight
model.layers.8.input_layernorm.weight
model.layers.8.post_attention_layernorm.weight
model.layers.9.input_layernorm.weight
model.layers.9.post_attention_layernorm.weight
model.norm.weight
model.onnx ONNX
onnx__MatMul_10018
onnx__MatMul_10019
onnx__MatMul_10020
onnx__MatMul_10021
onnx__MatMul_10022
onnx__MatMul_10023
onnx__MatMul_10024
onnx__MatMul_10025
onnx__MatMul_10026
onnx__MatMul_10027
onnx__MatMul_10028
onnx__MatMul_10029
onnx__MatMul_10030
onnx__MatMul_10031
onnx__MatMul_10049
onnx__MatMul_10050
onnx__MatMul_10051
onnx__MatMul_10052
onnx__MatMul_10053
onnx__MatMul_10054
onnx__MatMul_10055
onnx__MatMul_10059
onnx__MatMul_10060
onnx__MatMul_10061
onnx__MatMul_10062
onnx__MatMul_10063
onnx__MatMul_10064
onnx__MatMul_10065
onnx__MatMul_10080
onnx__MatMul_10081
onnx__MatMul_10082
onnx__MatMul_10083
onnx__MatMul_10084
onnx__MatMul_10085
onnx__MatMul_10086
onnx__MatMul_10093
onnx__MatMul_10094
onnx__MatMul_10095
onnx__MatMul_10096
onnx__MatMul_10097
onnx__MatMul_10098
onnx__MatMul_10099
onnx__MatMul_10111
onnx__MatMul_10112
onnx__MatMul_10113
onnx__MatMul_10114
onnx__MatMul_10115
onnx__MatMul_10116
onnx__MatMul_10117
onnx__MatMul_10127
onnx__MatMul_10128
onnx__MatMul_10129
onnx__MatMul_10130
onnx__MatMul_10131
onnx__MatMul_10132
onnx__MatMul_10133
onnx__MatMul_10142
onnx__MatMul_10143
onnx__MatMul_10144
onnx__MatMul_10145
onnx__MatMul_10146
onnx__MatMul_10147
onnx__MatMul_10148
onnx__MatMul_10161
onnx__MatMul_10162
onnx__MatMul_10163
onnx__MatMul_10164
onnx__MatMul_10165
onnx__MatMul_10166
onnx__MatMul_10167
onnx__MatMul_10173
onnx__MatMul_10174
onnx__MatMul_10175
onnx__MatMul_10176
onnx__MatMul_10177
onnx__MatMul_10178
onnx__MatMul_10179
onnx__MatMul_10195
onnx__MatMul_10196
onnx__MatMul_10197
onnx__MatMul_10198
onnx__MatMul_10199
onnx__MatMul_10200
onnx__MatMul_10201
onnx__MatMul_10204
onnx__MatMul_10205
onnx__MatMul_10206
onnx__MatMul_10207
onnx__MatMul_10208
onnx__MatMul_10209
onnx__MatMul_10210
onnx__MatMul_10229
onnx__MatMul_10230
onnx__MatMul_10231
onnx__MatMul_10232
onnx__MatMul_10233
onnx__MatMul_10234
onnx__MatMul_10235
onnx__MatMul_10236
onnx__MatMul_10237
onnx__MatMul_10238
onnx__MatMul_10239
onnx__MatMul_10240
onnx__MatMul_10241
onnx__MatMul_10263
onnx__MatMul_10264
onnx__MatMul_10265
onnx__MatMul_10266
onnx__MatMul_10267
onnx__MatMul_10268
onnx__MatMul_10269
onnx__MatMul_10270
onnx__MatMul_10271
onnx__MatMul_10272
onnx__MatMul_10297
onnx__MatMul_10298
onnx__MatMul_10299
onnx__MatMul_10300
onnx__MatMul_10301
onnx__MatMul_10302
onnx__MatMul_10303
onnx__MatMul_10328
onnx__MatMul_10329
onnx__MatMul_10330
onnx__MatMul_10331
onnx__MatMul_10332
onnx__MatMul_10333
onnx__MatMul_10334
onnx__MatMul_10335
onnx__MatMul_10336
onnx__MatMul_10337
onnx__MatMul_10365
onnx__MatMul_10366
onnx__MatMul_10367
onnx__MatMul_10368
onnx__MatMul_10369
onnx__MatMul_10370
onnx__MatMul_10371
onnx__MatMul_10399
onnx__MatMul_10400
onnx__MatMul_10401
onnx__MatMul_10402
onnx__MatMul_10403
onnx__MatMul_10404
onnx__MatMul_10405
onnx__MatMul_10433
onnx__MatMul_10434
onnx__MatMul_10435
onnx__MatMul_10436
onnx__MatMul_10437
onnx__MatMul_10438
onnx__MatMul_10439
onnx__MatMul_10467
onnx__MatMul_10468
onnx__MatMul_10469
onnx__MatMul_10470
onnx__MatMul_10471
onnx__MatMul_10472
onnx__MatMul_10473
onnx__MatMul_10501
onnx__MatMul_10502
onnx__MatMul_10503
onnx__MatMul_10504
onnx__MatMul_10505
onnx__MatMul_10506
onnx__MatMul_10507
onnx__MatMul_10535
onnx__MatMul_10536
onnx__MatMul_10537
onnx__MatMul_10538
onnx__MatMul_10539
onnx__MatMul_10540
onnx__MatMul_10541
onnx__MatMul_10569
onnx__MatMul_10570
onnx__MatMul_10571
onnx__MatMul_10572
onnx__MatMul_10573
onnx__MatMul_10574
onnx__MatMul_10575
onnx__MatMul_10603
onnx__MatMul_10604
onnx__MatMul_10605
onnx__MatMul_10606
onnx__MatMul_10607
onnx__MatMul_10608
onnx__MatMul_10609
onnx__MatMul_10637
onnx__MatMul_10638
onnx__MatMul_10639
onnx__MatMul_10640
onnx__MatMul_10641
onnx__MatMul_10642
onnx__MatMul_10643
onnx__MatMul_10671
onnx__MatMul_10672
onnx__MatMul_10673
onnx__MatMul_10674
onnx__MatMul_10675
onnx__MatMul_10676
onnx__MatMul_10677
onnx__MatMul_10705
onnx__MatMul_10706
onnx__MatMul_10707
onnx__MatMul_10708
onnx__MatMul_10709
onnx__MatMul_10710
onnx__MatMul_10711
onnx__MatMul_10739
onnx__MatMul_10740
onnx__MatMul_10741
onnx__MatMul_10742
onnx__MatMul_10743
onnx__MatMul_10744
onnx__MatMul_10745
onnx__MatMul_10773
onnx__MatMul_10774
onnx__MatMul_10775
onnx__MatMul_10776
onnx__MatMul_10777
onnx__MatMul_9338
onnx__MatMul_9339
onnx__MatMul_9340
onnx__MatMul_9367
onnx__MatMul_9368
onnx__MatMul_9369
onnx__MatMul_9370
onnx__MatMul_9371
onnx__MatMul_9372
onnx__MatMul_9373
onnx__MatMul_9398
onnx__MatMul_9399
onnx__MatMul_9400
onnx__MatMul_9401
onnx__MatMul_9402
onnx__MatMul_9403
onnx__MatMul_9404
onnx__MatMul_9429
onnx__MatMul_9430
onnx__MatMul_9431
onnx__MatMul_9432
onnx__MatMul_9433
onnx__MatMul_9434
onnx__MatMul_9435
onnx__MatMul_9460
onnx__MatMul_9461
onnx__MatMul_9462
onnx__MatMul_9463
onnx__MatMul_9464
onnx__MatMul_9465
onnx__MatMul_9466
onnx__MatMul_9491
onnx__MatMul_9492
onnx__MatMul_9493
onnx__MatMul_9494
onnx__MatMul_9495
onnx__MatMul_9496
onnx__MatMul_9497
onnx__MatMul_9522
onnx__MatMul_9523
onnx__MatMul_9524
onnx__MatMul_9525
onnx__MatMul_9526
onnx__MatMul_9527
onnx__MatMul_9528
onnx__MatMul_9553
onnx__MatMul_9554
onnx__MatMul_9555
onnx__MatMul_9556
onnx__MatMul_9557
onnx__MatMul_9558
onnx__MatMul_9559
onnx__MatMul_9584
onnx__MatMul_9585
onnx__MatMul_9586
onnx__MatMul_9587
onnx__MatMul_9588
onnx__MatMul_9589
onnx__MatMul_9590
onnx__MatMul_9615
onnx__MatMul_9616
onnx__MatMul_9617
onnx__MatMul_9618
onnx__MatMul_9619
onnx__MatMul_9620
onnx__MatMul_9621
onnx__MatMul_9646
onnx__MatMul_9647
onnx__MatMul_9648
onnx__MatMul_9649
onnx__MatMul_9650
onnx__MatMul_9651
onnx__MatMul_9652
onnx__MatMul_9677
onnx__MatMul_9678
onnx__MatMul_9679
onnx__MatMul_9680
onnx__MatMul_9681
onnx__MatMul_9682
onnx__MatMul_9683
onnx__MatMul_9689
onnx__MatMul_9690
onnx__MatMul_9691
onnx__MatMul_9708
onnx__MatMul_9709
onnx__MatMul_9710
onnx__MatMul_9711
onnx__MatMul_9712
onnx__MatMul_9713
onnx__MatMul_9714
onnx__MatMul_9719
onnx__MatMul_9720
onnx__MatMul_9721
onnx__MatMul_9722
onnx__MatMul_9723
onnx__MatMul_9724
onnx__MatMul_9725
onnx__MatMul_9739
onnx__MatMul_9740
onnx__MatMul_9741
onnx__MatMul_9742
onnx__MatMul_9743
onnx__MatMul_9744
onnx__MatMul_9745
onnx__MatMul_9753
onnx__MatMul_9754
onnx__MatMul_9755
onnx__MatMul_9756
onnx__MatMul_9757
onnx__MatMul_9758
onnx__MatMul_9759
onnx__MatMul_9770
onnx__MatMul_9771
onnx__MatMul_9772
onnx__MatMul_9773
onnx__MatMul_9774
onnx__MatMul_9775
onnx__MatMul_9776
onnx__MatMul_9787
onnx__MatMul_9788
onnx__MatMul_9789
onnx__MatMul_9790
onnx__MatMul_9791
onnx__MatMul_9792
onnx__MatMul_9793
onnx__MatMul_9801
onnx__MatMul_9802
onnx__MatMul_9803
onnx__MatMul_9804
onnx__MatMul_9805
onnx__MatMul_9806
onnx__MatMul_9807
onnx__MatMul_9821
onnx__MatMul_9822
onnx__MatMul_9823
onnx__MatMul_9824
onnx__MatMul_9825
onnx__MatMul_9826
onnx__MatMul_9827
onnx__MatMul_9832
onnx__MatMul_9833
onnx__MatMul_9834
onnx__MatMul_9835
onnx__MatMul_9836
onnx__MatMul_9837
onnx__MatMul_9838
onnx__MatMul_9855
onnx__MatMul_9856
onnx__MatMul_9857
onnx__MatMul_9858
onnx__MatMul_9859
onnx__MatMul_9860
onnx__MatMul_9861
onnx__MatMul_9863
onnx__MatMul_9864
onnx__MatMul_9865
onnx__MatMul_9866
onnx__MatMul_9867
onnx__MatMul_9868
onnx__MatMul_9869
onnx__MatMul_9889
onnx__MatMul_9890
onnx__MatMul_9891
onnx__MatMul_9892
onnx__MatMul_9893
onnx__MatMul_9894
onnx__MatMul_9895
onnx__MatMul_9896
onnx__MatMul_9897
onnx__MatMul_9898
onnx__MatMul_9899
onnx__MatMul_9900
onnx__MatMul_9923
onnx__MatMul_9924
onnx__MatMul_9925
onnx__MatMul_9926
onnx__MatMul_9927
onnx__MatMul_9928
onnx__MatMul_9929
onnx__MatMul_9930
onnx__MatMul_9931
onnx__MatMul_9956
onnx__MatMul_9957
onnx__MatMul_9958
onnx__MatMul_9959
onnx__MatMul_9960
onnx__MatMul_9961
onnx__MatMul_9962
onnx__MatMul_9963
onnx__MatMul_9987
onnx__MatMul_9988
onnx__MatMul_9989
onnx__MatMul_9990
onnx__MatMul_9991
onnx__MatMul_9992
onnx__MatMul_9993
onnx__MatMul_9994
onnx__MatMul_9995
onnx__MatMul_9996
onnx__MatMul_9997
special_tokens_map.json
token_id_to_str.json
tokenizer.json
tokenizer_config.json

Related models