Run this model with HF Jobs
Run Muapi/sam-yang-flux 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/Muapi/sam-yang-flux. 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/Muapi/sam-yang-flux 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 Muapi/sam-yang-flux with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Muapi/sam-yang-flux with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Muapi/sam-yang-flux") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Add Sam Yang flux
Browse filesFiles changed (4)
- .gitattributes+1
- README.mdAdded+36
- preview.jpgAdded
- sam-yang-flux.safetensorsAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textpreview.jpg filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536---license: openrail++library_name: diffusersbase_model: black-forest-labs/FLUX.1-devtags: - lora - text-to-image - flux - flux.1-dpipeline_tag: text-to-image---
# Sam Yang flux

**Base model**: Flux.1 D**Trained words**: samyangstyle
## 🧠 Usage (Python)
🔑 **Get your MUAPI key** from [muapi.ai/access-keys](https://muapi.ai/access-keys)
```pythonimport requests, osurl = "https://api.muapi.ai/api/v1/flux_dev_lora_image"headers = {"Content-Type": "application/json", "x-api-key": os.getenv("MUAPIAPP_API_KEY")}payload = { "prompt": "masterpiece, best quality, 1girl, looking at viewer", "model_id": [{"model": "civitai:727328@897007", "weight": 1.0}], "width": 1024, "height": 1024, "num_images": 1}print(requests.post(url, headers=headers, json=payload).json())```123version https://git-lfs.github.com/spec/v1oid sha256:0b3afef7c0408f4a9acb06166636e99ab3ae180034c193784a8f6a218544ba62size 60539824.gitattributes+1
README.mdAdded+36
preview.jpgAdded

Large File Pointer Details
- SHA256: 40e00e438244ebb16f0202c88971018b600f6b871817b4a959e3d5551557f61e
- Pointer size: 131 Bytes
- Size of remote file: 215 kB
sam-yang-flux.safetensorsAdded+3