Instructions to use onnx-community/BEN2-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/BEN2-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'onnx-community/BEN2-ONNX');
Create config.json
Browse files- config.json +6 -0
config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "ben",
|
| 3 |
+
"transformers.js_config": {
|
| 4 |
+
"dtype": "fp16"
|
| 5 |
+
}
|
| 6 |
+
}
|