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

How to support type Keras Pre-trained #703

Closed
1057888035 opened this issue Jun 12, 2024 · 1 comment
Closed

How to support type Keras Pre-trained #703

1057888035 opened this issue Jun 12, 2024 · 1 comment

Comments

@1057888035
Copy link

I want make this pre trained : https://huggingface.co/lingbionlp/AIONER-0415/tree/main.
It contains a file : PubmedBERT-CRF-AIONER.h5, I copied to my model: https://huggingface.co/cc12138/cctestAIONER/tree/main.
Run command: docker run -it --rm docker.elastic.co/eland/eland eland_import_hub_model --url http://*****:9200 --hub-model-id cc12138/cctestAIONER --start
Error print:
OSError: cc12138/cctestAIONER does not appear to have a file named config.json. Checkout 'https://huggingface.co/cc12138/cctestAIONER/main' for available files.

@davidkyle
Copy link
Member

OSError: cc12138/cctestAIONER does not appear to have a file named config.json

The config.json defines the type of the model and how to load it, there should also be a tokenizer_confg.json that defines which tokenizer to use. Those files aren't present in the HuggingFace repo and without them the model cannot be loaded.

Closing the issue as the model is missing vital files and cannot be loaded in either Eland or HuggingFace transformers.

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

No branches or pull requests

2 participants