Instructions to use arxtifix/Dummymodel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use arxtifix/Dummymodel with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("arxtifix/Dummymodel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 732 Bytes
644971b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #ARG EXOSCALE_DOCKER_REGISTRY=registry.internal.exoscale.ch
#FROM ${EXOSCALE_DOCKER_REGISTRY}/docker.io/library/ubuntu:latest
FROM ubuntu:22.04
# Install the necessary dependencies
RUN apt-get update && \
apt-get install -y \
bash \
python3 \
python3-pip \
curl \
unzip && \
rm -rf /var/lib/apt/lists/*
# Install AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip && ./aws/install
# Copy the script which downloads the model from S3
COPY download_model.sh /usr/local/bin/
# Give execution permissions to the script
RUN chmod +x /usr/local/bin/download_model.sh
# Script to run
ENTRYPOINT [ "/usr/local/bin/download_model.sh" ] |