Run this model with HF Jobs
Run epfl-neuroai/NEvo 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/epfl-neuroai/NEvo. 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/epfl-neuroai/NEvo 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 epfl-neuroai/NEvo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use epfl-neuroai/NEvo with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("epfl-neuroai/NEvo", 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
Download examples/quickstart.py from epfl-neuroai/NEvo: direct link, hf CLI and curl.
- Browser
- Download file 417 Bytes
-
https://huggingface.co/epfl-neuroai/NEvo/resolve/main/examples/quickstart.py
- Command line
-
hf download hf://epfl-neuroai/NEvo/examples/quickstart.py
-
curl -L -o quickstart.py https://huggingface.co/epfl-neuroai/NEvo/resolve/main/examples/quickstart.py
417 Bytes
| from stimulus_synthesis import NevoPipeline | |
| from stimulus_synthesis.media import save_video, video_to_t_c_h_w | |
| pipe = NevoPipeline.from_pretrained("epfl-neuroai/NEvo") | |
| out = pipe( | |
| roi="FFA", | |
| image_max_evals=80, | |
| video_max_evals=40, | |
| population_size=8, | |
| seed=0, | |
| ) | |
| print(out.best_prompt, out.best_score) | |
| save_video(video_to_t_c_h_w(out.best.video), "best_stimulus.mp4", fps=out.metadata["video_fps"]) | |