Instructions to use izhx/udever-bloom-1b1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use izhx/udever-bloom-1b1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="izhx/udever-bloom-1b1")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("izhx/udever-bloom-1b1") model = AutoModel.from_pretrained("izhx/udever-bloom-1b1") - Notebooks
- Google Colab
- Kaggle
RuntimeError: The model is currently loading, please re-run the query.
#2
by Manel-Hik - opened
Hi everyone
I'm trying to work with bloom for some NLP tasks in arabic
but I cannot import it
RuntimeError: The model is currently loading, please re-run the query.
model_id = "izhx/udever-bloom-1b1"
hf_token = "my_hf_token"
api_url = f"https://api-inference.huggingface.co/pipeline/feature-extraction/{model_id}"
headers = {"Authorization": f"Bearer {hf_token}"}
I'm working with GPU using 23028MiB
What should be the cause please
This seems to be a error of huggingface api.
You can try this model on you local device, by the following code:
# Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("izhx/udever-bloom-1b1")
model = AutoModel.from_pretrained("izhx/udever-bloom-1b1")