Questions tagged [gpt-3]

Use this tag with Generative Pre-trained Transformer 3 (GPT-3). Do not use with GPT-2 or the ad tagging library (GPT).

References:

GPT-3 (Wikipedia)

Related tags:

296 questions
1
vote
1 answer

openai using python, returned length problem in "text-davinci-002" model

I am trying to use "text-davinci-002" model using "openai". The returned text is a single sentence while the same sentence returns a full text in openAI official example. This is the code used: response = openai.Completion.create( …
1
vote
2 answers

What's your approach to extracting a summarized paragraph from multiple articles using GPT-3?

In the following scenario, what's your best approach using GPT-3 API? You need to come out with a short paragraph, about a specific subject You must base your paragraph on a set of articles, 3-6 articles, written in an unknown structure Here is…
yoni349
  • 107
  • 1
  • 15
1
vote
0 answers

Open AI. Response from openai.Completion.create incomplete

I have this code in Python. I would like to use the "openai.Completion.create" function: import os import openai from flask import Flask, redirect, render_template, request, url_for app = Flask(__name__) openai.api_key =…
Lev
  • 693
  • 1
  • 8
  • 24
1
vote
1 answer

GPT3 completion with insertion - invalid argument :suffix

I am trying out completions using insertions. It seems that I am supposed to use a parameter called suffix: to inform where the end of the insert goes. The payload to the endpoint: POST /v1/completions { "model": "code-davinci-002", "prompt":…
David Cruwys
  • 6,262
  • 12
  • 45
  • 91
1
vote
2 answers

GPT-3 Twitter Bot

I'm trying to fine-tune a GPT-3 model on my tweets. I want the model to generate tweets with no prompt. Is it possible? The dataset is reqired to have "prompt" and "completion" columns. Do I just take first couple of words of each tweet and make it…
user1743703
  • 133
  • 2
  • 10
1
vote
0 answers

NLP / ML Python: variation of topic modeling + summarization? Can someone point me in the right direction?

New to NLP and Machine learning. Wondering if someone can point me in the right direction: I'm looking to create a function that takes 2 inputs. -an array of strings (english sentences of varying relation to one another. but for these purposes let's…
dv151
  • 75
  • 1
  • 6
1
vote
1 answer

GPT-3 cannot mix two actions into one prompt (summarisation and tense changing)

(Just a heads up, this feels like a weird question to ask since there's not really any code involved, I'm not sure if this is the right place to ask) I am trying to summarise a journal entry and convert it into second person past tense (i.e. "I went…
Dara Java
  • 2,410
  • 3
  • 27
  • 52
1
vote
1 answer

Search through GPT-3's training data

I'm using GPT-3 for some experiments where I prompt the language model with tests from cognitive science. The tests have the form of short text snippets. Now I'd like to check whether GPT-3 has already encountered these text snippets during…
Frigoooo
  • 51
  • 4
1
vote
1 answer

How to use GPT-3 for fill-mask tasks?

I use the following code to get the most likely replacements for a masked word: !pip install git+https://github.com/huggingface/transformers.git import torch import pandas as pd from transformers import AutoModelForMaskedLM, AutoTokenizer,…
diggi2395
  • 185
  • 8
1
vote
0 answers

Issues running GPT-J-6B demo inference on colab

I'm trying to run the GPT-J 6B demo available here : https://colab.research.google.com/github/kingoflolz/mesh-transformer-jax/blob/master/colab_demo.ipynb Unfortunatelay I have some issues that are blocking me so far : Firstly, when I'm running this…
1
vote
1 answer

What is suffix and prefix prompt in openai Codex?

I have been trying to understand what is the suffix prompt in addition to the prefix prompt in Codex. They have provided an example def get_largest_prime_factor(n): if n < 2: return False def is_prime(n): > for i in range(2, n): > …
Exploring
  • 2,493
  • 11
  • 56
  • 97
1
vote
0 answers

Why do 'callback' and 'tweet' fail in my Twitter GPT-3 OpenAI bot?

I am trying to develop a Twitter bot using OpenAI gpt-3 library, following https://www.youtube.com/watch?v=V7LEihbOv3Y&t=1s this tutorial. I am getting this same error again and again. I clicked on AUTH link and authorized the bot. When I clicked on…
1
vote
1 answer

Why does Post request to OpenAI in Unity result in error 400?

I am trying to use GPT3 in a game I am making but I can't seem to be able to call the OpenAI API correctly. I got most of this from the Unity docs. Here is the code I am using: public class gpt3_complete : MonoBehaviour { public string model; …
1
vote
0 answers

Large Language Model Perplexity

i am currently using GPT-3 and i am trying to compare its capabilities to related language models for my masters thesis. Unfortunatly GPT-3 is an API based application, so i am not really able to extract metrics such as perplexity. Over the API i…
Fabian
  • 63
  • 1
  • 13
1
vote
2 answers

Finetuning GPT-3 on Windows?

While I have read the documentation on fine-tuning GPT-3, I do not understand how to do so. It seems that the proposed CLI commands do not work in the Windows CMD interface and I can not find any documentation on how to finetune GPT3 using a…
HaukeM
  • 106
  • 5