我在Android平台上遇到了这个问题。似乎由于库路径的原因,huggingface.tokenizers无法在Android上运行。我也曾尝试下载huggingface.tokenizers的源代码,并强制从正确的路径加载libtokenizers.so。然而,我仍然遇到错误:
java.lang.UnsatisfiedLinkError: dlopen failed: library "libstdc++.so.6" not found: needed by /data/app/***/base.apk!/lib/arm64-v8a/libtokenizers.so in namespace clns-6
at java.lang.Runtime.loadLibrary0(Runtime.java:1082)
at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
at java.lang.System.loadLibrary(System.java:1661)
at ai.djl.huggingface.tokenizers.jni.LibUtils.<clinit>(LibUtils.java:45)
at ai.djl.huggingface.tokenizers.HuggingFaceTokenizer.newInstance(HuggingFaceTokenizer.java:184)
at dev.langchain4j.model.embedding.OnnxBertBiEncoder.<init>(OnnxBertBiEncoder.java:39)
at dev.langchain4j.model.embedding.AbstractInProcessEmbeddingModel.loadFromJar(AbstractInProcessEmbeddingModel.java:22)
at dev.langchain4j.model.embedding.AllMiniLmL6V2EmbeddingModel.<clinit>(AllMiniLmL6V2EmbeddingModel.java:18)
我想知道它是否目前可以在Android平台上使用。
2条答案
按热度按时间ewm0tg9j1#
感谢superjackie的举报!
6jjcrrmo2#
相关:
#776
#1093