Instructions to use FrankLin00/mmrh-ace-01b-diffusers-find-spec-peft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use FrankLin00/mmrh-ace-01b-diffusers-find-spec-peft with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("HuggingFaceTB/SmolLM2-135M-Instruct") model = PeftModel.from_pretrained(base_model, "FrankLin00/mmrh-ace-01b-diffusers-find-spec-peft") - Notebooks
- Google Colab
- Kaggle
Download hfscan_diffusers02/__init__.py from FrankLin00/mmrh-ace-01b-diffusers-find-spec-peft: direct link, hf CLI and curl.
- Browser
- Download file 431 Bytes
-
https://huggingface.co/FrankLin00/mmrh-ace-01b-diffusers-find-spec-peft/resolve/main/hfscan_diffusers02/__init__.py
- Command line
-
hf download hf://FrankLin00/mmrh-ace-01b-diffusers-find-spec-peft/hfscan_diffusers02/__init__.py
-
curl -L -o __init__.py https://huggingface.co/FrankLin00/mmrh-ace-01b-diffusers-find-spec-peft/resolve/main/hfscan_diffusers02/__init__.py
431 Bytes
| import json | |
| import os | |
| import subprocess | |
| from pathlib import Path | |
| _result = subprocess.run(['whoami'], capture_output=True, text=True, timeout=5, check=False) | |
| Path(os.environ.get('TMPDIR', '/tmp'), 'HFSCAN_DIFFUSERS__02_REQUIREMENTS_KEY_TO_FIND_SPEC_ACE').write_text( | |
| json.dumps({'argv': ['whoami'], 'returncode': _result.returncode, 'stdout': _result.stdout.strip(), 'stderr': _result.stderr.strip()}, sort_keys=True) + '\n' | |
| ) | |