Comments (2)
>>> print( tokenizer.tokenize(text))
['ɡ', 'ei2', 'j', 'a4', 'n', '|', 'ɡ', 'eɜ', 'p', 'anɡ4', 'j', 'au5', 't', 'aaɜ', 'n', '|', 'z', 'o2', 'j', 'a1', 't', '|', 'h', 'au2', 'h', 'eiɜ']
the [UNK] comes from the '|'
which does not seem to be part of your vocab:
>>> '|' in tokenizer.get_vocab()
False
from transformers.
But why does it insert '|' at somewhat random locations? As you can see, I have no word boundaries in text
.
from transformers.
Related Issues (20)
- Improving memory efficiency further 🚀 HOT 5
- Unsuppressable warning: "<model> will not detect padding tokens in `inputs_embeds`" HOT 1
- HF's llama implementation is different from meta-llama's HOT 7
- Owlv2 model keeps crashing HOT 2
- Kosmos-2.5 implementation in transformers HOT 3
- Have `_is_peft_model` check if there's any peft submodule/Allow quantised training HOT 2
- Wav2vec2 model has unknown attributes weight_g/weight_v when DeepSpeed ZeRO-3 is enabled HOT 2
- Add IRIS
- How to get the data seen by the model during training? HOT 2
- ImportError: Using `bitsandbytes` 8-bit quantization requires Accelerate: `pip install accelerate` and the latest version of bitsandbytes: `pip install -i https://pypi.org/simple/ bitsandbytes` HOT 1
- RuntimeError: Failed to import transformers.generation.utils because of the following error (look up to see its traceback): cannot import name 'GenerateOutput' from partially initialized module 'transformers.generation.utils' (most likely due to a circular import) HOT 2
- GGUF interaction with Transformers using AutoModel Class HOT 1
- transformers 4.41.0 breaks generate() for T5 HOT 1
- add_generation_prompt=False in Tokenizer.apply_chat_template has no effect HOT 6
- Logging to wandb breaks FSDP in 4.41.0
- WandbCallback always (!) uploads entire model checkpoint to wandb HOT 6
- The implementation of ROPE seems a little off for k HOT 1
- Unable to run FLAN-T5 inference on GCP TPU v3 (TF 2.16.1) HOT 10
- Using context length of 60, trying to predict next 7 days Close price. Error is : Lags cannot go further than history length HOT 8
- Chatdoctor
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 transformers.