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/model.engine from moonbox-dev/BEN2-TensorRT: direct link, hf CLI and curl.
- Browser
- Download file 490 MB
-
https://huggingface.co/moonbox-dev/BEN2-TensorRT/resolve/main/fp16/model.engine
- Command line
-
hf download hf://moonbox-dev/BEN2-TensorRT/fp16/model.engine
-
curl -L -o model.engine https://huggingface.co/moonbox-dev/BEN2-TensorRT/resolve/main/fp16/model.engine
490 MB
- Xet hash:
- e38cc4b99a126cef5fd1e0efe9781d6e9c5b36a98aefd6a130ff784aeb856ac2
- Size of remote file:
- 490 MB
- SHA256:
- 2d4ac960f6f33f26225458f59b226f3a8f9d5f113b88ef2136d727fa33c8bbfa
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.