generative_agents icon indicating copy to clipboard operation
generative_agents copied to clipboard

anyone has a estimate on the cost per hour?

Open yubin-ai opened this issue 2 years ago • 11 comments

Thanks for the amazing project. Before I start running it I am trying to get a sense on the cost of running it. Thanks!

yubin-ai avatar Aug 12 '23 17:08 yubin-ai

+1

thechenv avatar Aug 13 '23 10:08 thechenv

I've just run a small test, 10 steps of in 'game' time, or 100 seconds of in 'game' time, it ran through some of that I believe then threw an error 'FileNotFoundError: [Errno 2] No such file or directory: '../../environment/frontend_server/storage/test2-simulation/movement/0.json'. The cost that OpenAI is showing for that usage time was $11.13. So I think it would be pretty expensive to run 1 step per 10 seconds of the day.

SpencerWF avatar Aug 13 '23 16:08 SpencerWF

Mine just generate "they are sleeping..." and it cost $5 :smiley:

trunglebka avatar Aug 14 '23 02:08 trunglebka

Based on my testing, the model currently being used is text-davinci-003, which is much more expensive than gpt3.5. I suggest not running it for too long at the moment.

fatedier avatar Aug 14 '23 04:08 fatedier

I run 10 steps, and cost about $1.24 with 3 agents and text-davinci-003

happyfire avatar Aug 14 '23 09:08 happyfire

Would be amazing to be able to plug in open source models to run this locally. OpenLLM or something similar could provide the API interface.

mberman84 avatar Aug 14 '23 18:08 mberman84

I run 10 steps, and cost about $1.24 with 3 agents and text-davinci-003

Running with 3 agents instead of 25 was a smart move.

SpencerWF avatar Aug 14 '23 18:08 SpencerWF

I run 10 steps, and cost about $1.31 with 3 agents and text-davinci-003

lxycopper avatar Aug 28 '23 07:08 lxycopper

I've just run a small test, 10 steps of in 'game' time, or 100 seconds of in 'game' time, it ran through some of that I believe then threw an error 'FileNotFoundError: [Errno 2] No such file or directory: '../../environment/frontend_server/storage/test2-simulation/movement/0.json'. The cost that OpenAI is showing for that usage time was $11.13. So I think it would be pretty expensive to run 1 step per 10 seconds of the day.

10 steps will not cost $11.13. The first step the GPT generates plans for the day, and in the next 2000 steps or more the agents are sleeping, which costs very few. You can create a folder named movement in the simulation storage folder, and things will work.

thulanxc avatar Sep 18 '23 05:09 thulanxc

I've just run a small test, 10 steps of in 'game' time, or 100 seconds of in 'game' time, it ran through some of that I believe then threw an error 'FileNotFoundError: [Errno 2] No such file or directory: '../../environment/frontend_server/storage/test2-simulation/movement/0.json'. The cost that OpenAI is showing for that usage time was $11.13. So I think it would be pretty expensive to run 1 step per 10 seconds of the day.

or did you run the 25-agent version? I only ran the 3-agent version. 3000 steps cost me 8 dollars.

thulanxc avatar Sep 18 '23 06:09 thulanxc

Replace all the text-davinci-002 or 003 in this project with gpt-3.5-turbo-instruct, and it costs only $0.11 in 10 steps.

wudi-7mi avatar Jan 07 '24 05:01 wudi-7mi