MindIE的屏幕输出环境变量是什么
收藏回复举报
MindIE的屏幕输出环境变量是什么
t('forum.solved') 已解决
发表于2024-08-29 13:46:08
0 查看

麻烦问一下,MindIE启动过程中的输出日志是通过哪个环境变量打印到屏幕上的。因为我是通过shell脚本来启动这个命令,所以在我们指定日志文件中并不会接收到这些日志,所以我想通过echo这个环境变量将其输出到我们指定的日志文件中,是否可行?如果可行,麻烦可以说一下是哪个环境变量吗?

如下:

root@fc1fa9857c21:/usr/local/Ascend/mindie/latest/mindie-service/bin# ./mindieservice_daemon  

2024-08-29 13:40:19,622 [INFO] [pid: 195] env.py-55: {'use_ascend': True, 'max_memory_gb': None, 'reserved_memory_gb': 3, 'skip_warmup': False, 'visible_devices': None, 'use_host_chooser': True, 'bind_cpu': True} 

2024-08-29 13:40:21,123 [INFO] [pid: 195] cpu_binding.py-206: rank_id: 0, device_id: 0, numa_id: 0, shard_devices: [0], cpus: [0, 1, 2, 3, 4, 5] 

2024-08-29 13:40:21,125 [INFO] [pid: 195] cpu_binding.py-231: process 195, new_affinity is [0, 1, 2, 3, 4, 5], cpu count 6 

The argument `trust_remote_code` is to be used with Auto classes. It has no effect here and is ignored. 

Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained. 

2024-08-29 13:40:26,806 [INFO] [pid: 195] logging.py-53: model_runner.quantize: None 

, model_runner.kv_quant: None 

, model_runner.dytpe: torch.float16 

2024-08-29 13:40:26,807 [INFO] [pid: 195] logging.py-53: Rank table file location:  

[W NPUCachingAllocator.cpp:623] Warning: expandable_segments currently defaults to false. You can enable this feature by `export PYTORCH_NPU_ALLOC_CONF = expandable_segments:True`. (function operator()) 
.............
.............
.............
The argument `trust_remote_code` is to be used with Auto classes. It has no effect here and is ignored. 

Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained. 

Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained. 

Daemon start success! 

我要发帖子