mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	llama : fix struct decl (#2790)
This commit is contained in:
		
							
								
								
									
										2
									
								
								llama.h
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								llama.h
									
									
									
									
									
								
							| @@ -485,7 +485,7 @@ extern "C" { | |||||||
|     // (e.g. beams[0]) as they will be removed (shifted) from all beams in all subsequent callbacks. |     // (e.g. beams[0]) as they will be removed (shifted) from all beams in all subsequent callbacks. | ||||||
|     // These pointers are valid only during the synchronous callback, so should not be saved. |     // These pointers are valid only during the synchronous callback, so should not be saved. | ||||||
|     struct llama_beams_state { |     struct llama_beams_state { | ||||||
|         llama_beam_view * beam_views; |         struct llama_beam_view * beam_views; | ||||||
|         size_t n_beams;               // Number of elements in beam_views[]. |         size_t n_beams;               // Number of elements in beam_views[]. | ||||||
|         size_t common_prefix_length;  // Current max length of prefix tokens shared by all beams. |         size_t common_prefix_length;  // Current max length of prefix tokens shared by all beams. | ||||||
|         bool last_call;               // True iff this is the last callback invocation. |         bool last_call;               // True iff this is the last callback invocation. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Marcus Dunn
					Marcus Dunn