Instructions to use Xenova/bloom-560m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/bloom-560m with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'Xenova/bloom-560m');
| { | |
| "per_channel": true, | |
| "reduce_range": true, | |
| "per_model_config": { | |
| "decoder_model": { | |
| "op_types": [ | |
| "CumSum", | |
| "Not", | |
| "Reshape", | |
| "Sub", | |
| "ReduceMean", | |
| "Transpose", | |
| "Equal", | |
| "Range", | |
| "Softmax", | |
| "Pow", | |
| "Mul", | |
| "Concat", | |
| "ConstantOfShape", | |
| "Constant", | |
| "Gather", | |
| "Cast", | |
| "Div", | |
| "ScatterND", | |
| "MatMul", | |
| "Or", | |
| "Add", | |
| "Expand", | |
| "Less", | |
| "Unsqueeze", | |
| "Shape", | |
| "Sqrt", | |
| "Tanh", | |
| "Where", | |
| "Slice" | |
| ], | |
| "weight_type": "QInt8" | |
| }, | |
| "decoder_with_past_model": { | |
| "op_types": [ | |
| "CumSum", | |
| "Not", | |
| "Reshape", | |
| "Sub", | |
| "ReduceMean", | |
| "Transpose", | |
| "Equal", | |
| "Softmax", | |
| "Pow", | |
| "Mul", | |
| "Concat", | |
| "ConstantOfShape", | |
| "Constant", | |
| "Gather", | |
| "Cast", | |
| "Div", | |
| "MatMul", | |
| "Add", | |
| "Expand", | |
| "Unsqueeze", | |
| "Shape", | |
| "Sqrt", | |
| "Tanh", | |
| "Where" | |
| ], | |
| "weight_type": "QInt8" | |
| }, | |
| "decoder_model_merged": { | |
| "op_types": [ | |
| "CumSum", | |
| "Not", | |
| "Reshape", | |
| "Sub", | |
| "ReduceMean", | |
| "If", | |
| "Transpose", | |
| "Equal", | |
| "Range", | |
| "Softmax", | |
| "Pow", | |
| "Mul", | |
| "Concat", | |
| "ConstantOfShape", | |
| "Constant", | |
| "Gather", | |
| "Cast", | |
| "Div", | |
| "ScatterND", | |
| "MatMul", | |
| "Or", | |
| "Add", | |
| "Expand", | |
| "Less", | |
| "Unsqueeze", | |
| "Shape", | |
| "Sqrt", | |
| "Tanh", | |
| "Where", | |
| "Slice" | |
| ], | |
| "weight_type": "QInt8" | |
| } | |
| } | |
| } |