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