Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bminixhofer authored Mar 30, 2023
1 parent 56ae305 commit 0f84a60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ target_embeddings, info = wechsel.apply(
)

model.get_input_embeddings().weight.data = torch.from_numpy(target_embeddings)
model.config.vocab_size = len(target_embeddings)

# use `model` and `target_tokenizer` to continue training in Swahili!
```
Expand Down

0 comments on commit 0f84a60

Please sign in to comment.