|  |  | @ -272,7 +272,7 @@ class HuggingfaceLLM: | 
			
		
	
		
		
			
				
					
					|  |  |  |         try: |  |  |  |         try: | 
			
		
	
		
		
			
				
					
					|  |  |  |             inputs = self.tokenizer.encode( |  |  |  |             inputs = self.tokenizer.encode( | 
			
		
	
		
		
			
				
					
					|  |  |  |                 task, return_tensors="pt" |  |  |  |                 task, return_tensors="pt" | 
			
		
	
		
		
			
				
					
					|  |  |  |             ).to(self.device) |  |  |  |             ) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             # self.log.start() |  |  |  |             # self.log.start() | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -451,6 +451,7 @@ class HuggingfaceLLM: | 
			
		
	
		
		
			
				
					
					|  |  |  |                 The new device to use for inference. |  |  |  |                 The new device to use for inference. | 
			
		
	
		
		
			
				
					
					|  |  |  |         """ |  |  |  |         """ | 
			
		
	
		
		
			
				
					
					|  |  |  |         self.device = device |  |  |  |         self.device = device | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if self.model is not None: | 
			
		
	
		
		
			
				
					
					|  |  |  |             self.model.to(self.device) |  |  |  |             self.model.to(self.device) | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     def set_max_length(self, max_length): |  |  |  |     def set_max_length(self, max_length): | 
			
		
	
	
		
		
			
				
					|  |  | 
 |