Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AMPLIFY Example #72

Merged
merged 16 commits into from
Dec 7, 2024
Merged

Update AMPLIFY Example #72

merged 16 commits into from
Dec 7, 2024

Conversation

zachcp
Copy link
Owner

@zachcp zachcp commented Dec 7, 2024

  • Refactor ferritin-amplify structs to their own files
  • add tokens.json to the repo and simplify the code
  • remove the WASM-incompatible pieces
  • update the CLI to take an input and to use the 120M or the 350M models
#  cargo run --example amplify   
cargo run --example amplify --features metal -- --model-id 350M --protein-string \   
MAFSAEDVLKEYDRRRRMEALLLSLYYPNDRKLLDYKEWSPPRVQVECPKAPVEWNNPPSEKGLIVGHFSGIKYKGEKAQASEVDVNKMCCWVSKFKDAMRRYQGIQTCKIPGKVLSDLDAKIKAYNLTVEGVEGFVRYSRVTKQHVAAFLKELRHSKQYENVNLIHYILTDKRVDIQHLEKDLVKDFKALVESAHRMRQGHMINVKYILYQLLKKHGHGPDGPDILTVKTGSKGVLYDDSFRKIYTDLGWKFTPL
target/debug/examples/amplify --model-id 350M --protein-string MAFSAEDVLKEYDRRRRMEALLLSLYYPNDRKLLDYKEWSPPRVQVECPKAPVEWNNPPSEKGLIVGHFSGIKYKGEKAQASEVDVNKMCCWVSKFKDAMRRYQGIQTCKIPGKVLSDLDAKIKAYNLTVEGVEGFVRYSRVTKQHVAAFLKELRHSKQYENVNLIHYILTDKRVDIQHLEKDLVKDFKALVESAHRMRQGHMINVKYILYQLLKKHGHGPDGPDILTVKTGSKGVLYDDSFRKIYTDLGWKFTPL`
Loading the Model and Tokenizer.......
Encoding.......
Predicting.......
Decoding.......
Decoded: Ok("L A L S A E D V L L E Y D R R R R L E A L L L S L Y Y P N D R L L L D Y L E W S P P R V Q V E L P L A P V E W N N P P S E L G L I V G L L S G I L Y L G E L A Q A S E V D V N L L L L W V S L L L D A L R R Y Q G I Q L L L I P G L V L S D L D A L I L A Y N L L V E G V E G L V R Y S R V L L Q L V A A L L L E L R L S R Q Y E N V N L I L Y I L L D L R V D I Q L L E L D L V L D L L A L V E S A L R L R Q G L L I N V R Y I L Y Q L L L R L G L G P D G P D I L L V L L G S L G V L Y D D S L R R I Y L D L G W L L L P L"),

@zachcp zachcp merged commit aec09aa into main Dec 7, 2024
1 check passed
@zachcp zachcp deleted the 20241207-plm branch December 7, 2024 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant