mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-01 00:17:44 +03:00 
			
		
		
		
	Add to docs
This commit is contained in:
		
							parent
							
								
									bce15df01c
								
							
						
					
					
						commit
						be24c0a0b7
					
				|  | @ -745,14 +745,17 @@ To benefit from pretraining, your training step needs to know to initialize its | ||||||
| this by setting `initialize.init_tok2vec` to the filename of the `.bin` file | this by setting `initialize.init_tok2vec` to the filename of the `.bin` file | ||||||
| that you want to use from pretraining. | that you want to use from pretraining. | ||||||
| 
 | 
 | ||||||
| A pretraining step that runs for 5 epochs with an output path of `pretrain/`, as | Similar to training, pretraining produces a `model-last.bin` file which is the | ||||||
| an example, produces `pretrain/model0.bin` through `pretrain/model4.bin`. To | last iteration of the trained weights which you can use to initialize your | ||||||
| make use of the final output, you could fill in this value in your config file: | `tok2vec` layer. Additionally, you can configure `n_save_epoch` to tell | ||||||
|  | pretraining in which epoch interval it should save the current training | ||||||
|  | progress. To make use of the final output, you could fill in this value in your | ||||||
|  | config file: | ||||||
| 
 | 
 | ||||||
| ```ini {title="config.cfg"} | ```ini {title="config.cfg"} | ||||||
| 
 | 
 | ||||||
| [paths] | [paths] | ||||||
| init_tok2vec = "pretrain/model4.bin" | init_tok2vec = "pretrain/model-last.bin" | ||||||
| 
 | 
 | ||||||
| [initialize] | [initialize] | ||||||
| init_tok2vec = ${paths.init_tok2vec} | init_tok2vec = ${paths.init_tok2vec} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user