Closed brownsugar123 closed 2 years ago
DefaultCPUAllocator: can't allocate memory: you tried to allocate 7506720000 bytes. Error code 12 (Cannot allocate memory)
Hi, perhaps you need to increase the physical memory of your machine
when i run
python3 src/main.py --config=qmix --env-config=sc2 with env_args.map_name=corridor
,the result is an error.Traceback (most recent call last): File "/home/jindingquan/.conda/envs/pymarl/lib/python3.8/site-packages/sacred/experiment.py", line 312, in run_commandline return self.run( File "/home/jindingquan/.conda/envs/pymarl/lib/python3.8/site-packages/sacred/experiment.py", line 276, in run run() File "/home/jindingquan/.conda/envs/pymarl/lib/python3.8/site-packages/sacred/run.py", line 238, in __call__ self.result = self.main_function(*args) File "/home/jindingquan/.conda/envs/pymarl/lib/python3.8/site-packages/sacred/config/captured_function.py", line 42, in captured_function result = wrapped(*args, **kwargs) File "src/main.py", line 38, in my_main run_REGISTRY[_config['run']](_run, config, _log) File "/home/jindingquan/pymarl2-master/src/run/run.py", line 54, in run run_sequential(args=args, logger=logger) File "/home/jindingquan/pymarl2-master/src/run/run.py", line 114, in run_sequential buffer = ReplayBuffer(scheme, groups, args.buffer_size, env_info["episode_limit"] + 1, File "/home/jindingquan/pymarl2-master/src/components/episode_buffer.py", line 209, in __init__ super(ReplayBuffer, self).__init__(scheme, groups, buffer_size, max_seq_length, preprocess=preprocess, device=device) File "/home/jindingquan/pymarl2-master/src/components/episode_buffer.py", line 28, in __init__ self._setup_data(self.scheme, self.groups, batch_size, max_seq_length, self.preprocess) File "/home/jindingquan/pymarl2-master/src/components/episode_buffer.py", line 75, in _setup_data self.data.transition_data[field_key] = th.zeros((batch_size, max_seq_length, *shape), dtype=dtype, device=self.device) RuntimeError: [enforce fail at alloc_cpu.cpp:73] . DefaultCPUAllocator: can't allocate memory: you tried to allocate 7506720000 bytes. Error code 12 (Cannot allocate memory) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "src/main.py", line 112, in <module> ex.run_commandline(params) File "/home/jindingquan/.conda/envs/pymarl/lib/python3.8/site-packages/sacred/experiment.py", line 347, in run_commandline print_filtered_stacktrace() File "/home/jindingquan/.conda/envs/pymarl/lib/python3.8/site-packages/sacred/utils.py", line 493, in print_filtered_stacktrace print(format_filtered_stacktrace(filter_traceback), file=sys.stderr) File "/home/jindingquan/.conda/envs/pymarl/lib/python3.8/site-packages/sacred/utils.py", line 528, in format_filtered_stacktrace return "".join(filtered_traceback_format(tb_exception)) File "/home/jindingquan/.conda/envs/pymarl/lib/python3.8/site-packages/sacred/utils.py", line 568, in filtered_traceback_format current_tb = tb_exception.exc_traceback AttributeError: 'TracebackException' object has no attribute 'exc_traceback'
how to fix it.Please help!!!!!!!!
did you solve this question??? please help!!!
when i run
python3 src/main.py --config=qmix --env-config=sc2 with env_args.map_name=corridor
,the result is an error.how to fix it.Please help!!!!!!!!