Instructions to use moonbox-dev/BEN2-TensorRT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TensorRT
How to use moonbox-dev/BEN2-TensorRT with TensorRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- BEN2
How to use moonbox-dev/BEN2-TensorRT with BEN2:
import requests from PIL import Image from ben2 import AutoModel url = "https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg" image = Image.open(requests.get(url, stream=True).raw) model = AutoModel.from_pretrained("moonbox-dev/BEN2-TensorRT") model.to("cuda").eval() foreground = model.inference(image) - Notebooks
- Google Colab
- Kaggle
Download fp16/config.json from moonbox-dev/BEN2-TensorRT: direct link, hf CLI and curl.
- Browser
- Download file 41 Bytes
-
https://huggingface.co/moonbox-dev/BEN2-TensorRT/resolve/main/fp16/config.json
- Command line
-
hf download hf://moonbox-dev/BEN2-TensorRT/fp16/config.json
-
curl -L -o config.json https://huggingface.co/moonbox-dev/BEN2-TensorRT/resolve/main/fp16/config.json
41 Bytes
| { | |
| "norm": "none", | |
| "minmax": true | |
| } | |