模型:
merve/chatgpt-prompts-bart-long
该模型是在ChatGPT提示数据集上经过微调的版本。它在评估集上取得了以下结果:
您可以使用它来生成ChatGPT人物角色。只需输入如下的人物角色描述:
from transformers import BartForConditionalGeneration, BartTokenizer example_english_phrase = "photographer" batch = tokenizer(example_english_phrase, return_tensors="pt") generated_ids = model.generate(batch["input_ids"], max_new_tokens=150) output = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
训练过程中使用了以下超参数:
Train Loss | Validation Loss | Epoch |
---|---|---|
8.4973 | 6.3592 | 0 |
5.3145 | 3.2640 | 1 |
3.5899 | 2.8350 | 2 |
3.1044 | 2.6154 | 3 |
2.8329 | 2.5015 | 4 |