Rate This Document
Findability
Accuracy
Completeness
Readability

An Error Is Reported When Multi-threaded Code Is Run on the Kunpeng Platform or a Model Error Is Reported

Symptom

When the RoBERTa model is loaded on the Kunpeng platform, the error message "BLAS: Bad Memory Unallocation" is displayed. The model is loaded using the from_pretrained method from the Transformers library. Preliminary analysis indicates the issue likely stems from the compiled .so file of the OpenBLAS library.

Key Process and Cause Analysis

If the application is already multi-threaded, it will conflict with OpenBLAS multi-threading.