Comments (1)
I believe the issue is more accurately caused by odd-numbered difference between original size and new size. Rounding up rather than down when calculating the padding fixes the above test cases.
from transformers.
Related Issues (20)
- Object Detection Pipeline only outputs first element when batching HOT 4
- Batch is empty when fine-tuning flan-t5 using LoRA
- Add support for setting default `use_fast` via `tokenizer_config.json` HOT 2
- LLama3 won't stop when provide eos_token_id HOT 4
- stop_strings not work at all HOT 2
- loading AutoTokenizer.from_pretrained with gated model HOT 5
- TypeError: Block.forward() got an unexpected keyword argument 'past_key_value' HOT 3
- cuda.empty_cache in trainer.py slow down training HOT 4
- model.generate() errors in Idefics2 Fine-tuning notebook HOT 5
- run_decision_transformer HOT 2
- Running AutoTokenizer.from_pretrained with Mistral V3 is actually loading LlamaTokenizer HOT 6
- Idefics 2: shape mismatch: value tensor of shape [320, 4096] cannot be broadcast to indexing result of shape [0, 4096] HOT 5
- Problems when using SinkCache for model.generate() HOT 6
- https://github.com/VikParuchuri/surya can not convert model to onnx HOT 5
- AttributeError: module 'torch.utils._pytree' has no attribute 'register_pytree_node' during import in transformers
- Sinusoidal Position Embedding weights somehow get altered HOT 1
- [SPAM]
- MPS
- loss = 0 after first log with trainer API HOT 3
- LLM Cache HOT 2
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.