Instructions to use Xenova/ClinicalBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/ClinicalBERT with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('feature-extraction', 'Xenova/ClinicalBERT');
Download quantize_config.json from Xenova/ClinicalBERT: direct link, hf CLI and curl.
- Browser
- Download file 750 Bytes
-
https://huggingface.co/Xenova/ClinicalBERT/resolve/main/quantize_config.json
- Command line
-
hf download hf://Xenova/ClinicalBERT/quantize_config.json
-
curl -L -o quantize_config.json https://huggingface.co/Xenova/ClinicalBERT/resolve/main/quantize_config.json
750 Bytes
| { | |
| "per_channel": true, | |
| "reduce_range": true, | |
| "per_model_config": { | |
| "model": { | |
| "op_types": [ | |
| "Erf", | |
| "MatMul", | |
| "Mul", | |
| "Transpose", | |
| "ReduceMean", | |
| "Constant", | |
| "Div", | |
| "Sub", | |
| "Softmax", | |
| "Cast", | |
| "Gather", | |
| "Reshape", | |
| "Pow", | |
| "Slice", | |
| "Sqrt", | |
| "Where", | |
| "Unsqueeze", | |
| "Expand", | |
| "Concat", | |
| "Shape", | |
| "Add", | |
| "Equal" | |
| ], | |
| "weight_type": "QInt8" | |
| } | |
| } | |
| } |