mirror of
				https://github.com/hiyouga/LLaMA-Factory.git
				synced 2025-11-04 18:02:19 +08:00 
			
		
		
		
	[data] Fix glm4v mmplugin when not expand (#9029)
This commit is contained in:
		
							parent
							
								
									6c777375b7
								
							
						
					
					
						commit
						1c675522fd
					
				@ -1630,6 +1630,9 @@ class GLM4VPlugin(Qwen2VLPlugin):
 | 
			
		||||
                    )
 | 
			
		||||
                    video_structure += frame_structure
 | 
			
		||||
 | 
			
		||||
                if not self.expand_mm_tokens:
 | 
			
		||||
                    video_structure = self.video_token
 | 
			
		||||
 | 
			
		||||
                content = content.replace(VIDEO_PLACEHOLDER, f"<|begin_of_video|>{video_structure}<|end_of_video|>", 1)
 | 
			
		||||
                num_video_tokens += 1
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user