-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How much does it usually take to complete? #5
Comments
我检查了自己的log 日志,发现请求一直失败: 不知道是什么原因造成的 |
Same question with huazhen02, 似乎是没有连接成功主机,尝试用作者提供的proxy跑一遍 |
大佬使用的proxy似乎不work,尝试用大佬的curl指令测试网络结果如下:
|
这个要根据
因为是调用openai的api,没有在本机跑模型,所以GPU不会对结果有任何影响。
可以看到正确返回了结果,所以理论上可以正常访问openai的API
通过 |
感谢大佬您的回复!我尝试了您说的方法将proxy设置为None并重新运行,但是仍然不work;之后我按照issue2的方法在post request那里删除了proxy变量,也是仍然不可以。后来我尝试了在openai.py 加了几个print函数,发现queue_of_requests_to_retry.empty() [line 65]在这个过程中始终为False,且下列的代码持续循环,持续print "making next request" 以及 "https://api.openai.com/v1/completions” :
后来我查看了下log日志,发现有两个问题,一个是failed过多(Request 43-0),一个是没有invalid URL, 内容显示如下: 2023-09-13 13:31:16,636 Request {'model': 'text-davinci-003', 'prompt': "You are a movie recommender system now.\nInput: Here is the watching history of a user: Gattaca, Armageddon, Big, Babes in Toyland, Gladiator. Based on this history, please rank the following candidate movies: (A) Con Air (B) Mulan (C) Nikita (D) Donnie Brasco (E) Star Wars: Episode I - The Phantom Menace\nOutput: The answer index is D C B A E.\nInput: Here is the watching history of a user: Sling Blade, Animal House, The Wizard of Oz, Blood Simple, My Life as a Dog. Based on this history, please rank the following candidate movies: (A) Heavenly Creatures (B) Gandhi (C) Diner (D) Antonia's Line (E) A Room with a View\nOutput: The answer index is", 'max_tokens': 20, 'temperature': 0, 'top_p': 1, 'frequency_penalty': 0.0, 'presence_penalty': 0.0, 'stop': '\n', 'logprobs': None, 'logit_bias': {}} failed after all attempts. Saving errors: [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 2023-09-13 13:31:16,656 Task exception was never retrieved 我是尝试在ubuntu的anaconda虚拟环境下运行这个程序,网络没有问题,可以正常访问openai的API, 想问下大佬还有什么可以用的解决方法吗?麻烦您了 |
多谢大佬的及时回复,我再仔细检查一下看看是哪里出了问题,麻烦啦 |
首先非常感谢大佬您的工作!我按照您在readme上的说明添加了OpenAI的API key:"sk-xxxxxx" 以及将四个Book, News, Music, Movie的数据移到了data文件夹下,最后在LLM4RS目录执行了“python script/run.py”指令,目前程序运行到了打印参数之后过了2个多小时仍然没有complete。请问大佬这是否属于正常情况?一般在有GPU的情况下跑一次需要要多长时间?麻烦大佬了
The text was updated successfully, but these errors were encountered: