mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	set context default to avoid memory issue, update guide
This commit is contained in:
		| @@ -636,6 +636,14 @@ use 1 SYCL GPUs: [0] with Max compute units:512 | ||||
|  | ||||
|   It's same for other projects including llama.cpp SYCL backend. | ||||
|  | ||||
| - Meet issue: `Native API failed. Native API returns: -6 (PI_ERROR_OUT_OF_HOST_MEMORY) -6 (PI_ERROR_OUT_OF_HOST_MEMORY)` or `failed to allocate SYCL0 buffer` | ||||
|  | ||||
|   Device Memory is not enough. | ||||
|  | ||||
|   |Reason|Solution| | ||||
|   |-|-| | ||||
|   |Default Context is too big. It leads to more memory usage.|Set `-c 8192` or smaller value.| | ||||
|   |Model is big and require more memory than device's.|Choose smaller quantized model, like Q5 -> Q4;<br>Use more than one devices to load model.| | ||||
|  | ||||
| ### **GitHub contribution**: | ||||
| Please add the **[SYCL]** prefix/tag in issues/PRs titles to help the SYCL-team check/address them without delay. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 arthw
					arthw