I’m using the @huggingface/transformers library on a backend Node application running Node v20 alpine. I discovered that the transformers library doesn’t seem to like Alpine as apparently it requires some system libraries that are not present in Alpine. I’ve been able to temporarily remedy this by using Node v20 slim, but that’s not ideal for this case. Is anyone familiar with this and willing to shed a little light? I’m not sure which dependencies could be causing this. Would alternate/earlier versions of the library possibly get around this? We’re only using it to get token counts prior to submitting prompts so we (hopefully) don’t have to deal with errors due to too many tokens.
1 Like