Text Classification
Transformers
ONNX
English
roberta
int8
optimum
multi-class-classification
ONNXRuntime
text-embeddings-inference
Run this model with HF Jobs
Run minuva/MiniLMv2-userflow-v2-onnx on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/minuva/MiniLMv2-userflow-v2-onnx. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/minuva/MiniLMv2-userflow-v2-onnx on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use minuva/MiniLMv2-userflow-v2-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minuva/MiniLMv2-userflow-v2-onnx with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="minuva/MiniLMv2-userflow-v2-onnx")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("minuva/MiniLMv2-userflow-v2-onnx") model = AutoModelForSequenceClassification.from_pretrained("minuva/MiniLMv2-userflow-v2-onnx", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload 8 files
Browse filesFiles changed (8)
- config.jsonAdded+74
- merges.txtAdded
- model_optimized_quantized.onnxAdded+3
- ort_config.jsonAdded+35
- special_tokens_map.jsonAdded+51
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+64
- vocab.jsonAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ "_name_or_path": "../output/MiniLMv2-L6-H384-distilled-from-RoBERTa-Large-userflow-distil-opt", "architectures": [ "RobertaForSequenceClassification" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "eos_token_id": 2, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 384, "id2label": { "0": "OTHER", "1": "agrees_praising_thanking", "2": "asks_source", "3": "continue", "4": "continue_or_finnish_code", "5": "improve_or_modify_answer", "6": "lack_of_understandment", "7": "model_wrong_or_try_again", "8": "more_listing_or_expand", "9": "repeat_answers_or_question", "10": "request_example", "11": "user_complains_repetition", "12": "user_doubts_answer", "13": "user_goodbye", "14": "user_reminds_question", "15": "user_wants_agent_to_answer", "16": "user_wants_explanation", "17": "user_wants_more_detail", "18": "user_wants_shorter_longer_answer", "19": "user_wants_simplier_explanation", "20": "user_wants_yes_or_no" }, "initializer_range": 0.02, "intermediate_size": 1536, "label2id": { "OTHER": 0, "agrees_praising_thanking": 1, "asks_source": 2, "continue": 3, "continue_or_finnish_code": 4, "improve_or_modify_answer": 5, "lack_of_understandment": 6, "model_wrong_or_try_again": 7, "more_listing_or_expand": 8, "repeat_answers_or_question": 9, "request_example": 10, "user_complains_repetition": 11, "user_doubts_answer": 12, "user_goodbye": 13, "user_reminds_question": 14, "user_wants_agent_to_answer": 15, "user_wants_explanation": 16, "user_wants_more_detail": 17, "user_wants_shorter_longer_answer": 18, "user_wants_simplier_explanation": 19, "user_wants_yes_or_no": 20 }, "layer_norm_eps": 1e-05, "max_position_embeddings": 514, "model_type": "roberta", "num_attention_heads": 12, "num_hidden_layers": 6, "pad_token_id": 1, "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.30.0", "type_vocab_size": 1, "use_cache": true, "vocab_size": 50265}123version https://git-lfs.github.com/spec/v1oid sha256:561d5128c6b25de04ccc8a7bd71add77224f31e929dbcf51c3d1ed7c354043bcsize 304562101234567891011121314151617181920212223242526272829303132333435{ "one_external_file": true, "opset": null, "optimization": {}, "optimum_version": "1.16.1", "quantization": { "activations_dtype": "QUInt8", "activations_symmetric": false, "format": "QOperator", "is_static": false, "mode": "IntegerOps", "nodes_to_exclude": [], "nodes_to_quantize": [], "operators_to_quantize": [ "Conv", "MatMul", "Attention", "LSTM", "Gather", "Transpose", "EmbedLayerNormalization" ], "per_channel": false, "qdq_add_pair_to_weight": false, "qdq_dedicated_pair": false, "qdq_op_type_per_channel_support_to_axis": { "MatMul": 1 }, "reduce_range": false, "weights_dtype": "QInt8", "weights_symmetric": true }, "transformers_version": "4.30.0", "use_external_data_format": false}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "cls_token": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "mask_token": { "content": "<mask>", "lstrip": true, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "sep_token": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "unk_token": { "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ "add_prefix_space": false, "added_tokens_decoder": { "0": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "50264": { "content": "<mask>", "lstrip": true, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<s>", "clean_up_tokenization_spaces": true, "cls_token": "<s>", "eos_token": "</s>", "errors": "replace", "mask_token": "<mask>", "max_length": 512, "model_max_length": 512, "pad_to_multiple_of": null, "pad_token": "<pad>", "pad_token_type_id": 0, "padding_side": "right", "sep_token": "</s>", "stride": 0, "tokenizer_class": "RobertaTokenizer", "trim_offsets": true, "truncation_side": "right", "truncation_strategy": "longest_first", "unk_token": "<unk>"}config.jsonAdded+74
merges.txtAdded
model_optimized_quantized.onnxAdded+3
ort_config.jsonAdded+35
special_tokens_map.jsonAdded+51
tokenizer.jsonAdded
tokenizer_config.jsonAdded+64
vocab.jsonAdded