Skip to content
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

Agents limited to <10m #49

Open
cpranav93 opened this issue Jan 22, 2024 · 0 comments
Open

Agents limited to <10m #49

cpranav93 opened this issue Jan 22, 2024 · 0 comments
Labels
bug Something isn't working DGL-PTM related to DGL-PTM

Comments

@cpranav93
Copy link

Currently the model cannot run for 10m agents due to the following error:

performing step 1 of 100
Traceback (most recent call last):
File "/gpfs/work1/0/einf4446/Pranav/DGL-PTM/dgl_ptm/dgl_ptm/model/initialize_model.py", line 327, in step
ptm_step(self.model_graph,self.model_data,self.step_count,self.steering_parameters)
File "/gpfs/work1/0/einf4446/Pranav/DGL-PTM/dgl_ptm/dgl_ptm/model/step.py", line 33, in ptm_step
local_attachment(agent_graph, n_FoF_links = 1, edge_prop = 'weight', p_attach=1. )
File "/gpfs/work1/0/einf4446/Pranav/DGL-PTM/dgl_ptm/dgl_ptm/network/local_attachment.py", line 12, in local_attachment
src_ids, dst_ids, _ = select_edges(graph,n_FoF_links,edge_prop)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/gpfs/work1/0/einf4446/Pranav/DGL-PTM/dgl_ptm/dgl_ptm/network/local_attachment.py", line 26, in select_edges
selected_edges=norm_edge_prop.flatten().multinomial(num_samples=n_FoF_links,replacement=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: number of categories cannot exceed 2^24

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/gpfs/work1/0/einf4446/Pranav/DGL-PTM/DGL_testing/gpu_test.py", line 32, in
model.run()
File "/gpfs/work1/0/einf4446/Pranav/DGL-PTM/dgl_ptm/dgl_ptm/model/initialize_model.py", line 338, in run
self.step()
File "/gpfs/work1/0/einf4446/Pranav/DGL-PTM/dgl_ptm/dgl_ptm/model/initialize_model.py", line 332, in step
raise RuntimeError(f'execution of step failed for step {self.step_count}')
RuntimeError: execution of step failed for step 1

@cpranav93 cpranav93 added bug Something isn't working DGL-PTM related to DGL-PTM labels Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DGL-PTM related to DGL-PTM
Projects
None yet
Development

No branches or pull requests

1 participant