Comments (4)
Hi, Codex was discontinued by OpenAI. You can try using the chat versions (gpt3-turbo or gpt4) instead.
from viper.
Hi,
I changed the model here. But it still gets stuck at the same point here. Little bit of debugging leads to the following error log:
This model's maximum context length is 4097 tokens. However, you requested 4423 tokens (3911 in the messages, 512 in the completion). Please reduce the length of the messages or completion.
Do you have any suggestions on how to avoid this? My query is of reasonable length with 12 words.
from viper.
Hi,
The problem is that gpt-3.5-turbo
has a context size of 4097, which is half the context size that Codex (code-davinci-002
) had. The solution for now is to remove the video part of the prompt (VideoSegment
class). Or, if you want to work with videos, remove functions from ImagePatch
that are not required for your application. We implemented the former in the chatapi.prompt
file. In order to use it, change this line (note that this is the default now).
chatapi.prompt
is also required when working with chat versions of GPT independently of the context size, because the completion does not work as well (it is not a completion model, but a chat model), so it needs to be prompted slightly differently. We did not test this prompt/model, so you may have to play a bit with the prompt.
from viper.
Removing VideoSegment from prompts/api.prompt solves the issue. Thanks!
from viper.
Related Issues (20)
- Disk quota for running main_batch.py HOT 2
- GQA Evaluation in test-dev_balanced dataset HOT 5
- ModuleNotFoundError: No module named 'IPython.kernel' HOT 4
- CUDA out of memory (XVLM Model) HOT 4
- Dataset-specific API examples HOT 1
- error while loading BLIPModel HOT 1
- Minor issue: the link to the image in the notebook demo needs to be updated HOT 1
- MCQ Evaluation HOT 1
- API for VideoQA HOT 1
- Multiple ModuleNotFoundError HOT 1
- OkVQA Evaluation HOT 1
- RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory HOT 1
- BLIP-2 Accelerate ImportError HOT 2
- Can you provide prompts for ChatGPT 3.5? HOT 1
- codex() returns None HOT 2
- Missing function from OKVQA datasets HOT 1
- Clarification over API use examples in prompt
- Video example
- The opensource library HOT 1
- Can I run this repo without GPUs? I have a small project that needs to deploy this to a virtual machine, but GPU is too expensive for me to afford.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viper.