allenai / visprog

Official code for VisProg (CVPR 2023 Best Paper!)
Apache License 2.0
691 stars 64 forks source link

EOF occurred in violation of protocol #20

Open Junital opened 6 months ago

Junital commented 6 months ago

When I run gqa.ipynb, there is an error I can't fix:


SSLError Traceback (most recent call last) SSLError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1007)

The above exception was the direct cause of the following exception:

MaxRetryError Traceback (most recent call last) File e:\Anaconda3\envs\visprog\lib\site-packages\requests\adapters.py:486, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies) 485 try: --> 486 resp = conn.urlopen( 487 method=request.method, 488 url=url, 489 body=request.body, 490 headers=request.headers, 491 redirect=False, 492 assert_same_host=False, 493 preload_content=False, 494 decode_content=False, 495 retries=self.max_retries, 496 timeout=timeout, 497 chunked=chunked, 498 ) 500 except (ProtocolError, OSError) as err:

File e:\Anaconda3\envs\visprog\lib\site-packages\urllib3\connectionpool.py:877, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw) ... 374 request_id=result.headers.get("X-Request-Id"), 375 ) 376 # Don't read the whole stream for debug logging unless necessary.

APIConnectionError: Error communicating with OpenAI


OS: Win11 conda env: visprog

I will appreciate it if there are some solutions.

Junital commented 6 months ago

It seems that text-davinci-003 is not useful, I change a model and it works.

Junital commented 6 months ago

21 It's the pull request where I changed the GPT model for GQA task, and this issue can be solved.