This repository was archived by the owner on Oct 31, 2022. It is now read-only.
  
  
  
            
  
    
      forked from openai/gpt-2
    
        
        - 
                Notifications
    You must be signed in to change notification settings 
- Fork 437
Added datasize paramater; changed imports #42
          
     Open
      
      
            theurerjohn3
  wants to merge
  65
  commits into
  nshepperd:finetuning
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
theurerjohn3:finetuning
  
      
      
   
  
    
  
  
  
 
  
      
    base: finetuning
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    …ve LF line endings and all files stay unix on commit
Add note about setting PYTHONIOENCODING=UTF-8 env var for running examples
Example will `tee` stdout to `/tmp/samples` from conditional and unconditional generation scripts.
add description for flags
added python download script and modified requirements to add the modules needed. Tested in Windows Version 10.0.17134 Build 17134 and Ubuntu 18.04.1 LTS
This write-up was loosely inspired in part by Mitchell et al.’s work on [Model Cards for Model Reporting](https://arxiv.org/abs/1810.03993). Adding such model usage sections could be good practice in general for open source research projects with potentially broad applications.
This enables multi-GPU or distributed training using Horovod
…w training the 345M model.
Add toposort to requirements
…ional_samples.py.
Added the medium blog link "Beginner’s Guide to Retrain GPT-2 (117M) to Generate Custom Text Content"
Updated README.md
  
      Sign up for free
      to subscribe to this conversation on GitHub.
      Already have an account?
      Sign in.
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
I could not train on smaller data sets, so I added an argument sample_batch_size to the train.py file, to make it possible to specify the sample size.
Additionally, I changed the file imports so that you no longer need to move the train.py to the src directory. I additionally changed the encode.py file and the train-horovod.py in the same manner, providing a path to look at the src file.