esm icon indicating copy to clipboard operation
esm copied to clipboard

ESM C load ESM 3 tokenizer?

Open wangleiofficial opened this issue 1 year ago • 3 comments

image

This mean before you install ESM C, must install ESM 3

wangleiofficial avatar Dec 05 '24 04:12 wangleiofficial

Running into this too; wanted to try out 300M and I'm getting filtered by the ESM3 authorization list.

matkozak avatar Dec 05 '24 15:12 matkozak

Same here - have access to the Forge API but don't know how to get onto the ESM3 authorization list on HF

atarashansky avatar Dec 06 '24 02:12 atarashansky

Hi @wangleiofficial @matkozak @atarashansky , my group made a wrapper for this that has full Huggingface integration and batching. You don't need the ESM package, other weights, and the tokenizer comes ready to go :) https://huggingface.co/Synthyra/ESMplusplus_small

lhallee avatar Dec 06 '24 19:12 lhallee

Hi @wangleiofficial @matkozak @atarashansky , my group made a wrapper for this that has full Huggingface integration and batching. You don't need the ESM package, other weights, and the tokenizer comes ready to go :) https://huggingface.co/Synthyra/ESMplusplus_small

Cool. I loaded it locally and successfully made sequence inference. Is it totally the same as using the esm package to load it?

NickShanyt avatar Dec 09 '24 14:12 NickShanyt

Yep, there's tests of the GitHub that show they function the same. You can even load from the ESM package by using from_pretrained_esm instead of from_pretrained. Happy PLMing! 😁

lhallee avatar Dec 09 '24 14:12 lhallee

This issue should be fixed in the v3.1.1 release.

ebetica avatar Dec 09 '24 16:12 ebetica

Yep, there's tests of the GitHub that show they function the same. You can even load from the ESM package by using from_pretrained_esm instead of from_pretrained. Happy PLMing! 😁

Many thanks! I've given your project a star!

NickShanyt avatar Dec 10 '24 09:12 NickShanyt

This should be reopened because this should be fixed in the ESM package anyway.

atarashansky avatar Dec 11 '24 04:12 atarashansky

Works for me in 3.1.1.

matkozak avatar Dec 11 '24 07:12 matkozak