-
Notifications
You must be signed in to change notification settings - Fork 16
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
模型超过2G怎么处理 #32
Comments
跑的是transformer类的模型嘛? |
是的 跑的DIT发自我的 iPhone在 2024年8月26日,14:51,gushiqiao ***@***.***> 写道:
跑的是transformer类的模型嘛?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
超过2G的模型,Dipoorlet会依赖"onnxruntime.transformers.optimizer"进行优化, 具体代码在这里,https://github.com/ModelTC/Dipoorlet/blob/c89130744d45ae2e7cb77081b8799c2ff31ee08d/dipoorlet/__main__.py#L85。 Dipoorlet/dipoorlet/__main__.py Line 53 in c891307
|
|
File "/workdir/common/anaconda3/envs/qpixart/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-platcv/tsl/q_mtpixart/Dipoorlet/dipoorlet/main.py", line 120, in
act_clip_val, weight_clip_val = tensor_calibration(onnx_graph, args)
File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-platcv/tsl/q_mtpixart/Dipoorlet/dipoorlet/tensor_cali/tensor_cali_base.py", line 6, in tensor_calibration
act_clip_val = tensor_cali_dispatcher(args.act_quant, onnx_graph, args)
File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-platcv/tsl/q_mtpixart/Dipoorlet/dipoorlet/utils.py", line 297, in wrapper
return dispatch(args[0])(*(args[1:]), **kw)
File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-platcv/tsl/q_mtpixart/Dipoorlet/dipoorlet/tensor_cali/basic_algorithm.py", line 35, in find_clip_val_hist
stats_min_max = forward_get_minmax(onnx_graph, args)
File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-platcv/tsl/q_mtpixart/Dipoorlet/dipoorlet/forward_net.py", line 200, in forward_get_minmax
ort_session = ort.InferenceSession(net.SerializeToString(), providers=providers)
The text was updated successfully, but these errors were encountered: