Instructions to use nvidia/Flora-TempSeg with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use nvidia/Flora-TempSeg with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-9B") model = PeftModel.from_pretrained(base_model, "nvidia/Flora-TempSeg") - Notebooks
- Google Colab
- Kaggle
Download batch_utils/bootstrap.py from nvidia/Flora-TempSeg: direct link, hf CLI and curl.
- Browser
- Download file 679 Bytes
-
https://huggingface.co/nvidia/Flora-TempSeg/resolve/main/batch_utils/bootstrap.py
- Command line
-
hf download hf://nvidia/Flora-TempSeg/batch_utils/bootstrap.py
-
curl -L -o bootstrap.py https://huggingface.co/nvidia/Flora-TempSeg/resolve/main/batch_utils/bootstrap.py
679 Bytes
| import hashlib | |
| import json | |
| import sys | |
| from .config import VENDOR | |
| def initialize(): | |
| manifest = json.loads((VENDOR / 'MANIFEST.json').read_text()) | |
| for relative, expected in manifest.items(): | |
| path = VENDOR / relative | |
| if not path.resolve().is_relative_to(VENDOR.resolve()): | |
| raise RuntimeError('Invalid runtime manifest path') | |
| if hashlib.sha256(path.read_bytes()).hexdigest() != expected: | |
| raise RuntimeError(f'Production code changed: {relative}') | |
| for path in [VENDOR, VENDOR / 'support', VENDOR / 'production_adapter']: | |
| sys.path.insert(0, str(path)) | |
| import adapter | |
| return adapter | |
| production = initialize() | |