All Questions
8 questions
0
votes
0
answers
138
views
Cannot load Transformers model in Docker which runs a FastAPI app
I have a simple FastAPI app which downloads a SentenceTransformers model like
from sentence_transformers import SentenceTransformers
from fastapi import FastAPI, Request
model = SentenceTransformer(&...
1
vote
0
answers
413
views
autotrain.trainers.common:wrapper:92 - No GPU found. A GPU is needed for quantization
❌ ERROR | 2024-02-06 11:07:29 | autotrain.trainers.common:wrapper:91 - train has failed due to an exception: Traceback (most recent call last):
File "/app/src/autotrain/trainers/common.py"...
0
votes
0
answers
326
views
cannot get dockerfile from dockerhub to work on huggingface spaces
the image runs perfectly when i run it in a container but then but it do not work when pushed to the hub and used in my hugging face spaces
I cannot get my docker image that is in the hub to work ...
3
votes
1
answer
938
views
Specifying Huggingface model as project dependency
Is it possible to install huggingface models as a project dependency?
Currently it is downloaded automatically by the SentenceTransformer library, but this means in a docker container it downloads ...
1
vote
1
answer
1k
views
Matplotlib in huggingfaces space cases Permission Denied Error
I am trying to setup huggingface spaces. Here is my dockerfile
FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --prefer-binary -r /code/...
3
votes
3
answers
2k
views
How to use AWS Sagemaker with newer version of Huggingface Estimator?
When trying to use Huggingface estimator on sagemaker, Run training on Amazon SageMaker e.g.
# create the Estimator
huggingface_estimator = HuggingFace(
entry_point='train.py',
...
3
votes
1
answer
4k
views
Build Docker image using Hugging Face's cache
Hugging Face has a caching system to load models from any app.
https://huggingface.co/docs/datasets/cache
This is useful in most cases, but not when building an image in Docker, as the cache must be ...
0
votes
0
answers
596
views
AWS lambda error when loading Transformers model
I made a post earlier about an error which got fixed but lead to another error. So I created code in python to summarize news articles and the code works on both my laptop and after creating a Docker ...