mirror of
				https://github.com/hiyouga/LLaMA-Factory.git
				synced 2025-11-04 18:02:19 +08:00 
			
		
		
		
	Increase shm_size to 16GB in docker-compose.yml to optimize shared memory allocation for large-scale model fine-tuning tasks.
This pull request increases the shm_size parameter in docker-compose.yml to 16GB. The goal is to enhance the LLaMA-Factory framework’s performance for large model fine-tuning tasks by providing sufficient shared memory for efficient data loading and parallel processing. This PR also addresses the issues discussed in [this comment](https://github.com/hiyouga/LLaMA-Factory/issues/4316#issuecomment-2466270708) regarding Shared Memory Limit error. Former-commit-id: de2616d103b4bdc2458874068b1a223c7de82b4e
This commit is contained in:
		
							parent
							
								
									e2da3cc9fa
								
							
						
					
					
						commit
						25da686758
					
				@ -24,6 +24,7 @@ services:
 | 
			
		||||
      - "8000:8000"
 | 
			
		||||
    ipc: host
 | 
			
		||||
    tty: true
 | 
			
		||||
    shm_size: '16gb'
 | 
			
		||||
    stdin_open: true
 | 
			
		||||
    command: bash
 | 
			
		||||
    deploy:
 | 
			
		||||
 | 
			
		||||
@ -22,6 +22,7 @@ services:
 | 
			
		||||
      - "8000:8000"
 | 
			
		||||
    ipc: host
 | 
			
		||||
    tty: true
 | 
			
		||||
    shm_size: '16gb'
 | 
			
		||||
    stdin_open: true
 | 
			
		||||
    command: bash
 | 
			
		||||
    devices:
 | 
			
		||||
 | 
			
		||||
@ -24,6 +24,7 @@ services:
 | 
			
		||||
      - "8000:8000"
 | 
			
		||||
    ipc: host
 | 
			
		||||
    tty: true
 | 
			
		||||
    shm_size: '16gb'
 | 
			
		||||
    stdin_open: true
 | 
			
		||||
    command: bash
 | 
			
		||||
    devices:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user