Run this model with HF Jobs

Run diabolic6045/harry_potter_chatbot 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 and TRL to fine-tune https://huggingface.co/diabolic6045/harry_potter_chatbot. 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/diabolic6045/harry_potter_chatbot 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.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/diabolic6045/harry_potter_chatbot. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/diabolic6045/harry_potter_chatbot. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Harry Potter Chatbot

This model is a chatbot designed to generate responses in the style of Harry Potter, the protagonist from J.K. Rowling's popular book series and its movie adaptations.

Model Architecture

The harry_potter_chatbot is based on the DialoGPT-medium model, a powerful GPT-based architecture designed for generating conversational responses. It has been fine-tuned on a dataset of Harry Potter's dialogues from movie transcripts.

Usage

You can use this model to generate responses for a given input text using the following code:

from transformers import AutoModelForCausalLM, AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("diabolic6045/harry_potter_chatbot")
model = AutoModelForCausalLM.from_pretrained("diabolic6045/harry_potter_chatbot")

input_text = "What's your favorite spell?"
input_tokens = tokenizer.encode(input_text, return_tensors='pt')
output_tokens = model.generate(input_tokens, max_length=50, num_return_sequences=1)
output_text = tokenizer.decode(output_tokens[0], skip_special_tokens=True)

print(output_text)

Limitations

This model is specifically designed to generate responses in the style of Harry Potter and may not provide accurate or coherent answers to general knowledge questions. It may also sometimes generate inappropriate responses. Be cautious while using this model in a public setting or for critical applications.

Training Data

The model was fine-tuned on a dataset of Harry Potter's dialogues from movie transcripts. The dataset was collected from publicly available movie scripts and includes conversations and quotes from various Harry Potter films.

Acknowledgments

This model was trained using the Hugging Face Transformers library, and it is based on the DialoGPT-medium model by Microsoft. Special thanks to the Hugging Face team and Microsoft for their contributions to the NLP community.


Feel free to test the model and provide feedback or report any issues. Enjoy chatting with Harry Potter!

Downloads last month
15
Safetensors
Model size
0.4B params
Tensor type
F32
Β·
BOOL
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for diabolic6045/harry_potter_chatbot

Quantizations
2 models

Space using diabolic6045/harry_potter_chatbot 1