Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	
		Sreyan Ghosh
		
	commited on
		
		
					Commit 
							
							·
						
						bca6b51
	
1
								Parent(s):
							
							49c61f0
								
initial commit
Browse files- configs/inference.yaml +1 -1
 - train/train.py +0 -5
 
    	
        configs/inference.yaml
    CHANGED
    
    | 
         @@ -269,7 +269,7 @@ mert_config: 
     | 
|
| 269 | 
         
             
              max_num_fewshot: 1  # number of fewshot samples (including the final one)
         
     | 
| 270 | 
         | 
| 271 | 
         
             
            model_config:
         
     | 
| 272 | 
         
            -
              cache_dir:  
     | 
| 273 | 
         | 
| 274 | 
         
             
              lang_encoder_path: Qwen/Qwen2.5-3B
         
     | 
| 275 | 
         
             
              tokenizer_path: Qwen/Qwen2.5-3B
         
     | 
| 
         | 
|
| 269 | 
         
             
              max_num_fewshot: 1  # number of fewshot samples (including the final one)
         
     | 
| 270 | 
         | 
| 271 | 
         
             
            model_config:
         
     | 
| 272 | 
         
            +
              cache_dir: .cache
         
     | 
| 273 | 
         | 
| 274 | 
         
             
              lang_encoder_path: Qwen/Qwen2.5-3B
         
     | 
| 275 | 
         
             
              tokenizer_path: Qwen/Qwen2.5-3B
         
     | 
    	
        train/train.py
    CHANGED
    
    | 
         @@ -5,8 +5,6 @@ import functools 
     | 
|
| 5 | 
         
             
            import glob
         
     | 
| 6 | 
         
             
            import os
         
     | 
| 7 | 
         
             
            os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "max_split_size_mb:512"
         
     | 
| 8 | 
         
            -
            os.environ['TRANSFORMERS_CACHE'] = '/lustre/fsw/portfolios/adlr/users/sreyang/.cache'
         
     | 
| 9 | 
         
            -
            os.environ['HF_HOME'] = '/lustre/fsw/portfolios/adlr/users/sreyang/.cache'
         
     | 
| 10 | 
         
             
            import random
         
     | 
| 11 | 
         
             
            import shutil
         
     | 
| 12 | 
         
             
            import sys 
         
     | 
| 
         @@ -54,9 +52,6 @@ from train_utils import ( 
     | 
|
| 54 | 
         
             
            from valid_utils import validation_losses
         
     | 
| 55 | 
         
             
            from src.factory import create_model_and_transforms
         
     | 
| 56 | 
         | 
| 57 | 
         
            -
            os.environ['TRANSFORMERS_CACHE'] = '/lustre/fsw/portfolios/adlr/users/sreyang/.cache'
         
     | 
| 58 | 
         
            -
            os.environ['HF_HOME'] = '/lustre/fsw/portfolios/adlr/users/sreyang/.cache'
         
     | 
| 59 | 
         
            -
             
     | 
| 60 | 
         
             
            def random_seed(seed=42, rank=0):
         
     | 
| 61 | 
         
             
                torch.manual_seed(seed + rank)
         
     | 
| 62 | 
         
             
                np.random.seed(seed + rank)
         
     | 
| 
         | 
|
| 5 | 
         
             
            import glob
         
     | 
| 6 | 
         
             
            import os
         
     | 
| 7 | 
         
             
            os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "max_split_size_mb:512"
         
     | 
| 
         | 
|
| 
         | 
|
| 8 | 
         
             
            import random
         
     | 
| 9 | 
         
             
            import shutil
         
     | 
| 10 | 
         
             
            import sys 
         
     | 
| 
         | 
|
| 52 | 
         
             
            from valid_utils import validation_losses
         
     | 
| 53 | 
         
             
            from src.factory import create_model_and_transforms
         
     | 
| 54 | 
         | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 55 | 
         
             
            def random_seed(seed=42, rank=0):
         
     | 
| 56 | 
         
             
                torch.manual_seed(seed + rank)
         
     | 
| 57 | 
         
             
                np.random.seed(seed + rank)
         
     |