Error: can't register atexit after shutdown
Hi, could you please help with resolve below issue for IPython.core.display module
Setup mamba virtual env: /home/idps/vidur/vidur-venv I configured wandb and set to variable WANDB_BASE_URL to local web server with API key.
Please let me know if you need any additional information
(/home/idps/vidur/vidur-venv) idps@smc-gpu-03:~/vidur$ python -m vidur.main --replica_config_device a100 --replica_config_model_name meta-llama/Llama-2-7b-hf --cluster_config_num_replicas 1 --replica_config_tensor_parallel_size 1 --replica_config_num_pipeline_stages 1 --request_generator_config_type synthetic --length_generator_config_type trace --interval_generator_config_type static --trace_request_length_generator_config_max_tokens 4096 --trace_request_length_generator_config_trace_file ./data/processed_traces/arxiv_summarization_stats_llama2_tokenizer_filtered_v2.csv --synthetic_request_generator_config_num_requests 128 --replica_scheduler_config_type vllm --vllm_scheduler_config_batch_size_cap 256 --vllm_scheduler_config_max_tokens_in_batch 4096 --metrics_config_wandb_project idps-wandb
INFO 09-25 12:47:13 trace_request_length_generator.py:78] Loaded request length trace file ./data/processed_traces/arxiv_summarization_stats_llama2_tokenizer_filtered_v2.csv with 28257 requests
INFO 09-25 12:47:15 simulator.py:60] Starting simulation with cluster: Cluster({'id': 0, 'num_replicas': 1}) and 128 requests
INFO 09-25 12:47:15 simulator.py:80] Simulation ended at: 92.29293720617318s
INFO 09-25 12:47:15 simulator.py:83] Writing output
Error importing optional module IPython.core.display
Traceback (most recent call last):
File "/home/idps/vidur/vidur-venv/lib/python3.10/site-packages/_plotly_utils/optional_imports.py", line 28, in get_module
return import_module(name)
File "/home/idps/vidur/vidur-venv/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
I run into the exact same issue!
Also running into the same issue
Hi @rajeshitshoulders @akaashrp and @ozcanmiraay,
Can you please try removing jupyterlab dependency from environment.yml. You'll need to create a new mamba environment with the changed environment.yml file.
IPython is used by jupyterlab. The later is only used in the experiment notebooks not the actual simulator code. So, we can remove jupyterlab and that might remove the error.
Got the same error, and still failed without jupyterlab installed @nitinkedia7
Got the same error, and still failed without
jupyterlabinstalled @nitinkedia7
I manually uninstall the IPython, there is no error anymore, but I can only get the request_metrics.csv under the output dir without any errors occur, and the running log just ends with Writing output, and I found that any fig.write_image will get stucked so I can only comment out the code now.
Hi, this seems to be caused by kaleido, downgrading to 0.2.1 fixed the problem for me. pip install -U kaleido==0.2.1
Hi @rajeshitshoulders @vladandrew @Yogaht @akaashrp, Vidur now uses seaborn (based on matplotlib) instead of plotly (which uses kaleido). This removes dependency on kaliedo and hence the original error should not resurface. Also, please checkout the recent major release of Vidur https://github.com/microsoft/vidur/pull/56.
Hi @rajeshitshoulders @vladandrew @Yogaht @akaashrp, Vidur now uses
seaborn(based onmatplotlib) instead ofplotly(which useskaleido). This removes dependency onkaliedoand hence the original error should not resurface. Also, please checkout the recent major release of Vidur #56.
Hi @nitinkedia7 I also encounter this issue with the main branch.
conda env create -f environment-dev.yml pip install -r requirement.txt pip install -r requirement_dev.txt
python -m vidur.main
and downupgrading kaleido works for me.