Text Generation
Transformers
Safetensors
English
blenderbot
text2text-generation
BlenderBot
Conversational
Fine-tuned
Text Generation
Eval Results (legacy)
Instructions to use 12sciencejnv/TalkGPT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 12sciencejnv/TalkGPT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="12sciencejnv/TalkGPT")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("12sciencejnv/TalkGPT") model = AutoModelForSeq2SeqLM.from_pretrained("12sciencejnv/TalkGPT") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use 12sciencejnv/TalkGPT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "12sciencejnv/TalkGPT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "12sciencejnv/TalkGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/12sciencejnv/TalkGPT
- SGLang
How to use 12sciencejnv/TalkGPT with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "12sciencejnv/TalkGPT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "12sciencejnv/TalkGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "12sciencejnv/TalkGPT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "12sciencejnv/TalkGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use 12sciencejnv/TalkGPT with Docker Model Runner:
docker model run hf.co/12sciencejnv/TalkGPT
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("12sciencejnv/TalkGPT")
model = AutoModelForSeq2SeqLM.from_pretrained("12sciencejnv/TalkGPT")Quick Links
TalkGPT
This model is a fine-tuned version of BlenderBot-400M (distilled) based on a custom conversational dataset. It is designed to generate conversational responses in English.
License
Apache 2.0
Datasets
The model is fine-tuned on a custom dataset consisting of conversational dialogues.
Language
English
Metrics
- BLEU: 0.1687 (calculated on the validation set)
- ROUGE-1: 0.4078
- ROUGE-2: 0.1912
- ROUGE-L: 0.3418
- ROUGE-Lsum: 0.3401
- Training Loss: 0.2460 (final training loss after fine-tuning)
Base Model
The model is based on the BlenderBot-400M-distill architecture by Facebook AI.
Pipeline Tag
text-generation
Library Name
transformers
Tags
BlenderBot, Conversational, Fine-tuned, Text Generation
Eval Results
The model achieved the following results on the validation set:
- BLEU: 0.1687
- ROUGE-1: 0.4078
- ROUGE-2: 0.1912
- ROUGE-L: 0.3418
- ROUGE-Lsum: 0.3401
- Training Loss: 0.2460 after 3 epochs of fine-tuning.
- Downloads last month
- 14
Model tree for 12sciencejnv/TalkGPT
Base model
facebook/blenderbot-400M-distillEvaluation results
- BLEU on custom-datasetSelf-evaluated0.169
- ROUGE on custom-datasetSelf-evaluated[object Object]
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="12sciencejnv/TalkGPT")