Comments (4)
Good point, in the tests we are loading the tokenizer from the checkpoint, but one should be able to set it from there as well.
Thanks, doing that rn
from lit-llama.
Yes we could add that parameter. Note that we haven't actually used this train() function for llama, it is just there for the train.py skeleton script which for now runs on shakespeare, and tokenizer.train() is applied to that data. Just an FYI but the suggestion sounds good
from lit-llama.
Fair enough - I'd assume that it makes more sense to pre-train the tokenizer independently anyway (on a manual sample of suitable size). It may be fine to use a size that is suitable for such demo examples such as the Shakespeare demo.
from lit-llama.
Done! Yes for Shakespeare I set it to a lower number explicitly. Thanks for opening the issue @kno10
from lit-llama.
Related Issues (20)
- RuntimeError: probability tensor contains either `inf`, `nan` or element < 0
- Full fine-tuning on Alpaca dataset with 4 L40s GPUs fails 8 hours into the training job with index_copy_ HOT 2
- How to convert hf weight of 70b to lit-lamma weights?
- How to quantize LLama in fine-tuning ?
- RuntimeError: cutlassF: no kernel found to launch! HOT 1
- RuntimeError: Expected x1.dtype() == cos.dtype() to be true, but got false. (Could this error message be improved? If so, please report an enhancement request to PyTorch.) HOT 1
- Can I use Lightning fabirc to pre train llama2 on v100?
- Ban some tokens
- Error: git submodule update --init --recursive -q did not run successfully HOT 1
- Beam search generation
- Issue with Rotary Embedding Initialization when the number of devices is > 1
- TPU Training
- OSError: Not found: "checkpoints/lit-llama/tokenizer.model": No such file or directory Error #2 HOT 4
- `PackedDatasetBuilder` does not separate with `sep_token`
- it seems that hash of traindata is lost, so it's impossible to continue finetune after stop
- Converting from lit-llama to HF checkpoint?
- why cannot the generate function be used twice
- How to convert lit-llama pretrained model to HF format? HOT 1
- Using llama3 through lit lama HOT 5
- Where is tokenizer.model? tokenizer path
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lit-llama.