Run this model with HF Jobs
Run microsoft/DialogRPT-human-vs-machine 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/microsoft/DialogRPT-human-vs-machine. 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/microsoft/DialogRPT-human-vs-machine 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 microsoft/DialogRPT-human-vs-machine with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/DialogRPT-human-vs-machine with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="microsoft/DialogRPT-human-vs-machine")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("microsoft/DialogRPT-human-vs-machine") model = AutoModelForSequenceClassification.from_pretrained("microsoft/DialogRPT-human-vs-machine", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files27 unmodified lines282930313132333435363738363738394027 unmodified lines
### Examples:
The `human_vs_machine` score predicts how likely the response is corresponding to the given context, rather than a random response.
The `human_vs_machine` score predicts how likely the response is from a human rather than a machine.
Examples below can be reproduced with this [Colab Notebook](https://colab.research.google.com/drive/1cAtfkbhqsRsT59y3imjR1APw3MHDMkuV?usp=sharing)
| Context | Response | `human_vs_machine` score |
| :------ | :------- | :------------: |
| I love NLP! | He is a great basketball player. | 0.027 |
| I love NLP! | Can you tell me how it works? | 0.754 |
| I love NLP! | Me too! | 0.631 |
| I love NLP! | I'm not sure if it's a good idea. | 0.000 |
| I love NLP! | Me too! | 0.605 |
### Contact:
Please create an issue on [our repo](https://github.com/golsun/DialogRPT)README.md+3-4