Closed sids07 closed 1 year ago
Exalate commented:
JEM-Mosig commented:
Sorry, @sids07 , but Rasa only supports Tensorflow models at the moment. You're trying to load a PyTorch model.
Exalate commented:
sids07 commented:
@JEM-Mosig is there any way we can load this model?
Exalate commented:
JEM-Mosig commented:
Actually, the from_pt
option would require us to add pytorch to our dependencies, which is not compatible with tensorflow. So it'd be better to manually convert the pytorch model to tensorflow before using it with Rasa.
Exalate commented:
lhr0909 commented:
@JEM-Mosig Actually I have tested by adding this from_pt
flag and also including the pytorch dependency and it is working fine. I have a working example repository that contains this change - https://github.com/lhr0909/rasa-v2-nlu-bert-chinese/commit/2a431adde81095f705858925b02ecf07a932fda4
For PyTorch dependency, I only had to manually include a version of transformers
with torch
extras - https://github.com/lhr0909/rasa-v2-nlu-bert-chinese/blob/main/pyproject.toml#L10
➤ Maxime Verger commented:
:bulb: Heads up! We're moving issues to Jira: https://rasa-open-source.atlassian.net/browse/OSS.
From now on, this Jira board is the place where you can browse (without an account) and create issues (you'll need a free Jira account for that). This GitHub issue has already been migrated to Jira and will be closed on January 9th, 2023. Do not forget to subscribe to the corresponding Jira issue!
:arrow_right: More information in the forum: https://forum.rasa.com/t/migration-of-rasa-oss-issues-to-jira/56569.
Rasa Open Source version
2.2.5
Rasa SDK version
No response
Rasa X version
No response
Python version
3.7
What operating system are you using?
Other
What happened?
I was train chatbot for spanish language and i have found some pretrained finetuned models on huggingface which i wanted to test for featurizers. But trying several such models what i found was that rasa only downloads weights if there is tf_model.h5 present on that huggingface/models/.. directories. But if there is only pytorch_model.bin present it throws error that no model is found on the huggingface/models/given_name. And in error it says it doesn't found tf_model.h5 or pytorch_model.bin.
Command / Request
h3. Relevant log output