Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Create test123
#5
by
						
luxananda
	
							
						- opened
							
					
    	
        test123
    ADDED
    
    | @@ -0,0 +1,10 @@ | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | 
|  | |
| 1 | 
            +
            import torch
         | 
| 2 | 
            +
            from transformers import pipeline
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            generate_text = pipeline(model="databricks/dolly-v2-12b", 
         | 
| 5 | 
            +
                                torch_dtype=torch.bfloat16,
         | 
| 6 | 
            +
                                trust_remote_code=True,
         | 
| 7 | 
            +
                                device_map="auto")
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            generate_text("Explain to me the difference between nuclear \
         | 
| 10 | 
            +
                           fission and fusion.")
         | 
