Skip to main content

LucaGPLM - The LUCA general purpose language model.

Project description

LucaGPLM

LucaGPLM - The LUCA general purpose language model.

Installation

You can install the package from source using pip:

pip install .

Usage

from lucagplm import LucaGPLMModel, LucaGPLMTokenizer

# Load model
model = LucaGPLMModel.from_pretrained("Yuanfei/lucavirus-large-step3.8M")
tokenizer = LucaGPLMTokenizer.from_pretrained("Yuanfei/lucavirus-large-step3.8M")

# Example usage
seq = "ATCG"
inputs = tokenizer(seq, seq_type="gene",return_tensors="pt")
outputs = model(**inputs)

seq = "NSQTA"
inputs = tokenizer(seq, seq_type="prot",return_tensors="pt")
outputs = model(**inputs)

print(outputs.last_hidden_state.shape)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lucagplm-1.0.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lucagplm-1.0.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file lucagplm-1.0.0.tar.gz.

File metadata

  • Download URL: lucagplm-1.0.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for lucagplm-1.0.0.tar.gz
Algorithm Hash digest
SHA256 949017c6b7a871f40c0fee8df0381a08c0e71e31e08b0cac31d92158a182ae86
MD5 b94830d014259458ae3f0f747ec50fd1
BLAKE2b-256 69d58d13c45bd7b66be6e3b5c647192ed25000789512faacc9e015ea20f97bfa

See more details on using hashes here.

File details

Details for the file lucagplm-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: lucagplm-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for lucagplm-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18339f517bd9ce3d010ee313d871307ffb83f5fc6422d3ad6c0bc191b49ca242
MD5 52401d6b625d764b92c2c2c966a2a464
BLAKE2b-256 b792eac5fb7681fc0d06f34f92081fc75a44ad2519008fc27e99e08ba21d38f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page