Locutusque / gpt2-conversational-retrain

huggingface.co
Total runs: 1.0K
24-hour runs: 0
7-day runs: 163
30-day runs: 85
Model's Last Updated: November 19 2023
text-generation

Introduction of gpt2-conversational-retrain

Model Details of gpt2-conversational-retrain

Model Card for Model ID

This a fine-tuned version of gpt2 on Locutusque/InstructMix.

Model Details

This model performs significantly better than Locutusque/gpt2-conversational-or-qa. Here are the training results:

  • BLEU - 26
  • Perplexity - 12
Model Description
  • Developed by: Locutusque
  • Shared by [optional]: [More Information Needed]
  • Model type: GPT-2
  • Language(s) (NLP): English
  • License: [More Information Needed]
  • Finetuned from model [optional]: GPT-2
Model Sources [optional]
  • Repository: [More Information Needed]
  • Paper [optional]: [More Information Needed]
  • Demo [optional]: [More Information Needed]
Uses

This model is designed to follow instructions, or partake in conversations.

Direct Use

Instruction-following or conversational.

Downstream Use [optional]

[More Information Needed]

Out-of-Scope Use

[More Information Needed]

Bias, Risks, and Limitations

[More Information Needed]

Recommendations

Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.

How to Get Started with the Model

Use the code below to get started with the model.

import torch
from transformers import GPT2Tokenizer, GPT2LMHeadModel

tokenizer = GPT2Tokenizer.from_pretrained('gpt2-conversational-retrain')
model = GPT2LMHeadModel.from_pretrained('gpt2-conversational-retrain')
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model.to(device)
def generate_text(model, tokenizer, prompt, max_length=1024):
    prompt = f'<|USER|> {prompt} <|ASSISTANT|> '
    input_ids = tokenizer.encode(prompt, add_special_tokens=True, return_tensors="pt").to(device)
    attention_mask = torch.ones_like(input_ids).to(device)
    output = model.generate(input_ids, 
                            max_length=max_length, 
                            do_sample=True,
                            temperature=0.3, 
                            top_k=23, 
                            top_p=0.7,
                            repetition_penalty=1.176,
                            pad_token_id=tokenizer.pad_token_id,
                            eos_token_id=tokenizer.eos_token_id,
                            attention_mask=attention_mask)
    output_ids = tokenizer.decode(output[0], skip_special_tokens=False)
    return output_ids
# Loop to interact with the model
while True:
    prompt = input("Enter a prompt (or 'q' to quit): ")
    if prompt == "q":
        break
    output_text = generate_text(model, tokenizer, prompt)
    print(output_text)
Training Details
Training Data

https://huggingface.co/datasets/Locutusque/InstructMix

This model has so far been trained on 10% of the linked data, with more training sessions to come.

Training Procedure
Preprocessing [optional]

[More Information Needed]

Training Hyperparameters
  • Training regime: fp16 non-mixed precision
Speeds, Sizes, Times [optional]

[More Information Needed]

Evaluation
Testing Data, Factors & Metrics
Testing Data

[More Information Needed]

Factors

[More Information Needed]

Metrics

[More Information Needed]

Results

[More Information Needed]

Summary
Model Examination [optional]

[More Information Needed]

Environmental Impact

Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019) .

  • Hardware Type: [More Information Needed]
  • Hours used: [More Information Needed]
  • Cloud Provider: [More Information Needed]
  • Compute Region: [More Information Needed]
  • Carbon Emitted: [More Information Needed]
Technical Specifications [optional]
Model Architecture and Objective

[More Information Needed]

Compute Infrastructure

[More Information Needed]

Hardware

[More Information Needed]

Software

[More Information Needed]

Citation [optional]

BibTeX:

[More Information Needed]

APA:

[More Information Needed]

Glossary [optional]

[More Information Needed]

More Information [optional]

[More Information Needed]

Model Card Authors [optional]

[More Information Needed]

Model Card Contact

[More Information Needed]

Runs of Locutusque gpt2-conversational-retrain on huggingface.co

1.0K
Total runs
0
24-hour runs
0
3-day runs
163
7-day runs
85
30-day runs

More Information About gpt2-conversational-retrain huggingface.co Model

More gpt2-conversational-retrain license Visit here:

https://choosealicense.com/licenses/mit

gpt2-conversational-retrain huggingface.co

gpt2-conversational-retrain huggingface.co is an AI model on huggingface.co that provides gpt2-conversational-retrain's model effect (), which can be used instantly with this Locutusque gpt2-conversational-retrain model. huggingface.co supports a free trial of the gpt2-conversational-retrain model, and also provides paid use of the gpt2-conversational-retrain. Support call gpt2-conversational-retrain model through api, including Node.js, Python, http.

gpt2-conversational-retrain huggingface.co Url

https://huggingface.co/Locutusque/gpt2-conversational-retrain

Locutusque gpt2-conversational-retrain online free

gpt2-conversational-retrain huggingface.co is an online trial and call api platform, which integrates gpt2-conversational-retrain's modeling effects, including api services, and provides a free online trial of gpt2-conversational-retrain, you can try gpt2-conversational-retrain online for free by clicking the link below.

Locutusque gpt2-conversational-retrain online free url in huggingface.co:

https://huggingface.co/Locutusque/gpt2-conversational-retrain

gpt2-conversational-retrain install

gpt2-conversational-retrain is an open source model from GitHub that offers a free installation service, and any user can find gpt2-conversational-retrain on GitHub to install. At the same time, huggingface.co provides the effect of gpt2-conversational-retrain install, users can directly use gpt2-conversational-retrain installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

gpt2-conversational-retrain install url in huggingface.co:

https://huggingface.co/Locutusque/gpt2-conversational-retrain

Url of gpt2-conversational-retrain

gpt2-conversational-retrain huggingface.co Url

Provider of gpt2-conversational-retrain huggingface.co

Locutusque
ORGANIZATIONS

Other API from Locutusque