text: 
  
  TITLE
  Update no_trainer examples to use new logger
  
  COMMENTS
  2
  
  REACTIONS
  +1: 0
  -1: 0
  laugh: 0
  hooray: 0
  heart: 0
  rocket: 0
  eyes: 0
  
  BODY
  # Update `no_trainer` examples to use the new Accelerate logger
  
  ## What does this add?
  
  - Accelerate recently added a [new logger](https://github.com/huggingface/accelerate/pull/337/) to help deal with repeat logs across all processes. If it should be logged on all, a new kwarg `main_process_only=False` should be passed in. 
  
  This helps also solve an annoyance users were pointing out about repeat logs leading to misunderstandings of how the internal API was acting on
  
  ## What parts of the API does this impact?
  
  ### User-facing:
  
  The examples now show using the new `get_logger()` function from Accelerate