Comments (4)
I was also wondering if this is possible.
from ankh.
Yes, it supports decoding from extracted protein representation, check out this notebook https://github.com/agemagician/Ankh/blob/main/examples/simple_generation.ipynb.
When you initialize the model pass generation=True
(e.g. ankh.load_ankh_base(generation=True)
), It will return T5ForConditionalGeneration that will contain the encoder and the decoder that you can use for decoding the extracted protein representation.
Sorry for the late response. I will keep this issue open in case I did not answer your question.
from ankh.
Thank you so much for your reply!
from ankh.
@hazemessamm I read the generation notebook, but I'm not sure how to pass a 768-wide tensor (the encoder's hidden state, essentially) to the decoder so I get a list of tokens as a result. Is this possible?
from ankh.
Related Issues (19)
- is feature extraction correct due to padding? HOT 1
- High-N generation HOT 3
- Database of generated embeddings HOT 2
- Availability of fine-tuned models for downstream tasks
- Secondary structure prediction dataset HOT 2
- Half-precision
- How to compute the perplexity of a protein sequence by ankh PLM? HOT 1
- Availability of training/fine-tuning scripts HOT 1
- Generation within Sequence/Mask prediction HOT 3
- Generating sequences longer than 115
- python script for solubility score? HOT 1
- Missing model architecture and training details
- MultiLabelClassification Issue HOT 2
- Binary solubility example notebook error.
- Decoding labels in masking
- Downstream task: what model for remote homology prediction ?
- Fine-tuning multilabel classification
- Error: Missing Model Files for ElnaggarLab/ankh2-large on HF
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ankh.