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 (3150c97)
Browse filesFiles changed (20)
- audio/aasist3/api.py+2-2
- audio/nes2net/api.py+2-2
- audio/safeear/api.py+2-2
- audio/shiftyspeech/api.py+2-2
- audio/sonics/app.py+2-2
- image/aide/app.py+2-2
- image/cospy/app.py+2-2
- image/effort/app.py+2-2
- image/fsd/app.py+2-2
- image/npr/app.py+2-2
- image/universal/app.py+2-2
- image/yermandy/app.py+2-2
- provenance/audioseal/app.py+2-2
- provenance/videoseal/app.py+2-2
- video/fake-stormer/app.py+2-2
- video/lipfd/app.py+2-2
- video/mintime/app.py+2-2
- video/pwtf-dvd/app.py+2-2
- video/recce/app.py+2-2
- video/sbi/app.py+2-2
83 unmodified lines8485868788899084 unmodified lines17517617717817918018183 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(84 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}83 unmodified lines8485868788899084 unmodified lines17517617717817918018183 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(84 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
96 unmodified lines97989910010110210394 unmodified lines19819920020120220320496 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(94 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}96 unmodified lines97989910010110210394 unmodified lines19819920020120220320496 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(94 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
80 unmodified lines81828384858687146 unmodified lines23423523623723823924080 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(146 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}80 unmodified lines81828384858687146 unmodified lines23423523623723823924080 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(146 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
96 unmodified lines97989910010110210393 unmodified lines19719819920020120220396 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(93 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}96 unmodified lines97989910010110210393 unmodified lines19719819920020120220396 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(93 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
77 unmodified lines7879808182838480 unmodified lines16516616716816917017177 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(80 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}77 unmodified lines7879808182838480 unmodified lines16516616716816917017177 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(80 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
90 unmodified lines91929394959697223 unmodified lines32132232332432532632790 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(223 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}90 unmodified lines91929394959697223 unmodified lines32132232332432532632790 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(223 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
113 unmodified lines114115116117118119120211 unmodified lines332333334335336337338113 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(211 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}113 unmodified lines114115116117118119120211 unmodified lines332333334335336337338113 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(211 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
114 unmodified lines115116117118119120121260 unmodified lines382383384385386387388114 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(260 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}114 unmodified lines115116117118119120121260 unmodified lines382383384385386387388114 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(260 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
83 unmodified lines84858687888990164 unmodified lines25525625725825926026183 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(164 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}83 unmodified lines84858687888990164 unmodified lines25525625725825926026183 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(164 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
112 unmodified lines113114115116117118119191 unmodified lines311312313314315316317112 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(191 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}112 unmodified lines113114115116117118119191 unmodified lines311312313314315316317112 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(191 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
74 unmodified lines75767778798081270 unmodified lines35235335435535635735874 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(270 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}74 unmodified lines75767778798081270 unmodified lines35235335435535635735874 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(270 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
153 unmodified lines154155156157158159160165 unmodified lines326327328329330331332153 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(165 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}153 unmodified lines154155156157158159160165 unmodified lines326327328329330331332153 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(165 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
80 unmodified lines81828384858687139 unmodified lines22722822923023123223380 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(139 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}80 unmodified lines81828384858687139 unmodified lines22722822923023123223380 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(139 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
85 unmodified lines86878889909192270 unmodified lines36336436536636736836985 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(270 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}85 unmodified lines86878889909192270 unmodified lines36336436536636736836985 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(270 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
92 unmodified lines9394959697989981 unmodified lines18118218318418518618792 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(81 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}92 unmodified lines9394959697989981 unmodified lines18118218318418518618792 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(81 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
115 unmodified lines11611711811912012112298 unmodified lines221222223224225226227115 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(98 unmodified linestorch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}115 unmodified lines11611711811912012112298 unmodified lines221222223224225226227115 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(98 unmodified linestorch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
204 unmodified lines205206207208209210211107 unmodified lines319320321322323324325204 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(107 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}204 unmodified lines205206207208209210211107 unmodified lines319320321322323324325204 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(107 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
127 unmodified lines128129130131132133134108 unmodified lines243244245246247248249127 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(108 unmodified linestorch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}127 unmodified lines128129130131132133134108 unmodified lines243244245246247248249127 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(108 unmodified linestorch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
129 unmodified lines130131132133134135136110 unmodified lines247248249250251252253129 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(110 unmodified linestorch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}129 unmodified lines130131132133134135136110 unmodified lines247248249250251252253129 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(110 unmodified linestorch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
117 unmodified lines11811912012112212312486 unmodified lines211212213214215216217117 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_mem / 1024**3,)else:logger.warning(86 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_mem / 1024**2),}return {}117 unmodified lines11811912012112212312486 unmodified lines211212213214215216217117 unmodified lineslogger.info("Device: cuda (%s, %.1f GB VRAM)",torch.cuda.get_device_name(0),torch.cuda.get_device_properties(0).total_memory / 1024**3,)else:logger.warning(86 unmodified lines"gpu_name": torch.cuda.get_device_name(0),"vram_used_mb": round(torch.cuda.memory_allocated(0) / 1024**2),"vram_total_mb": round(torch.cuda.get_device_properties(0).total_memory / 1024**2),}return {}
audio/aasist3/api.py+2-2
audio/nes2net/api.py+2-2
audio/safeear/api.py+2-2
audio/shiftyspeech/api.py+2-2
audio/sonics/app.py+2-2
image/aide/app.py+2-2
image/cospy/app.py+2-2
image/effort/app.py+2-2
image/fsd/app.py+2-2
image/npr/app.py+2-2
image/universal/app.py+2-2
image/yermandy/app.py+2-2
provenance/audioseal/app.py+2-2
provenance/videoseal/app.py+2-2
video/fake-stormer/app.py+2-2
video/lipfd/app.py+2-2
video/mintime/app.py+2-2
video/pwtf-dvd/app.py+2-2
video/recce/app.py+2-2
video/sbi/app.py+2-2