Run this model with HF Jobs
Run SnapOtter/deepsafe-services on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/SnapOtter/deepsafe-services. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/SnapOtter/deepsafe-services on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use SnapOtter/deepsafe-services with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use SnapOtter/deepsafe-services with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("SnapOtter/deepsafe-services", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
DeepSafe commited on
sync from GitHub (28464ab)
Browse files1234567891011121314151617181920FROM pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtimeWORKDIR /app# Install git and wgetRUN apt-get update && \apt-get install -y git wget && \apt-get clean && \rm -rf /var/lib/apt/lists/*# Copy requirements fileCOPY requirements.txt .# Install dependencies# Install dependenciesRUN pip install uv && \uv pip install --system --no-cache-dir -r requirements.txt# Copy application codeCOPY app.py .1234567891011121314151617181920212223FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04ENV DEBIAN_FRONTEND=noninteractiveENV PYTHONUNBUFFERED=1WORKDIR /appRUN apt-get update && apt-get install -y --no-install-recommends \python3 python3-pip git wget \&& rm -rf /var/lib/apt/lists/*RUN ln -sf /usr/bin/python3 /usr/bin/python# Install PyTorch with CUDA 12.1 (upgraded from 1.11/CUDA 11.3 for Blackwell support)RUN pip install --no-cache-dir \torch==2.5.1 torchvision==0.20.1 \--index-url https://download.pytorch.org/whl/cu121COPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# Copy application codeCOPY app.py .
image/universal/Dockerfile+15-12