cancel
Showing results for 
Search instead for 
Did you mean: 

LLM, RAG and Cloud Foundry: No space left on device

marcus_schiffer
Active Participant
0 Kudos

Hi,

 

we were following a set of blogs and tutorials like:

https://community.sap.com/t5/technology-blogs-by-sap/enhancing-s-4hana-with-sap-hana-cloud-vector-st...

https://developers.sap.com/tutorials/ai-core-genai-hana-vector.html

 

We need to use the features in a cloud foundry python app. Unfortunately the installation of

package 

sentence-transformers (as part of the requirements.txt file) always leads to a "no space left on device" error during build.
The memory limit is set to 8G, the disk space to 10G in the manifest.yml.
 
How can we solve this issue in the SAP BTP cloud foundry environment ?
 
Any help is highly appreciated.
 
Regards
Marcus 

 

Accepted Solutions (1)

Accepted Solutions (1)

Dinu
Contributor

Sometimes staging requires more disk space.  If you vendor your requirements, there would be no need for this.  Make sure to target platform as cflinuxfs4(Ubuntu 22.04). 

See a similar issue: https://community.sap.com/t5/technology-q-a/could-not-install-packages-due-to-an-environmenterror-er...

 

marcus_schiffer
Active Participant
0 Kudos
Thanks for the information. We get one step further but now we see 7.50 MiB / 2.73 GiB [>-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0.27%Error unmarshalling the following into a cloud controller error: <html> <head><title>413 Request Entity Too Large</title></head> <body> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx</center> </body> </html>
marcus_schiffer
Active Participant
0 Kudos
How could this be solved ?
Dinu
Contributor
0 Kudos
You need to provide some more context to this. When do you get this error? This appears to be unrelated to the original question. So it might be better to pose a new question to get fresh eyeballs to look at it without the cloud of the previous issue.
marcus_schiffer
Active Participant
0 Kudos
The main problem indeed is the size of the app. The pip install of sentence-transform installs a lot of prerequisites. When choosing a proper combination of these and install them before installing it, it will reduce the size of the app to below the limit for storage capacity of the cf environment.
Dinu
Contributor
The error "no space left on device" usually is because the build tools uses /tmp or other file systems with limitted size. The disk size available for the app itself you can control with the quota for the app. When do you encounter the error "Error unmarshalling"? BTW, ML applications are normally not run in CF, but in AI Core. It provides much bigger machines needed for these.
marcus_schiffer
Active Participant
0 Kudos
Using AICore might be an alternative. However, in our case we already have all data in a HANA cloud as part of a cloud foundry tenant/space architecture. Also the machine learning part is only regression and time series forecast and data volume is limited. So the HANA ML functions in our existing landscape are sufficient. For the RAG the HANA also offers the vector store so that everything is on board for a ML/chatGPT/ application.
Dinu
Contributor
0 Kudos
@marcus_schiffer, Which packages were you installing? I could install sentence-transformers=2.7.0 and langchain=0.1.16 without vendoring in 4GB RAM, 10GB disk. The model (all-MiniLM-L6-v2) was downloaded at runtime and used. I was considering installing the packages also at runtime, but there was no need.

Answers (0)