Comments (2)
After a quick skim of the repository, BytePairTokenizer
, WordPieceTokenizer
, and SentencePieceTokenizer
seem to have vocabularies saved & loaded with save_assets()
& load_assets()
and are affected by this issue.
The aforementioned compute_output_spec()
method (copied below) should work for each of them.
def compute_output_spec(self, input_spec) -> keras.KerasTensor:
return keras.KerasTensor(input_spec.shape + (self.sequence_length,),
dtype=self.compute_dtype,
sparse=not self.sequence_length)
-> #1523
from keras-nlp.
@briango28 can this be marked as fixed?
from keras-nlp.
Related Issues (20)
- Samplers in Gemma model HOT 6
- Retrieving Model Text in Custom Loss Function for Training
- Cannot reproduce results from notebook on Colab HOT 3
- GemmaBackbone.get_layout_map broken for gemma_2b_en HOT 5
- make it easier to adjust dropout when loading gemma models HOT 1
- DebertaV3MaskedLM example don't work HOT 2
- 403 KaggleApiHTTPError while running GemmaCausalLM HOT 2
- Add support for `PaliGemma`
- Preprocessor does not respect sequence_length HOT 2
- unable to diagnose OOM HOT 4
- Cannot export a slightly customized XLMRoberta model from keras_nlp HOT 1
- Distributed training not working (batch size calculation) HOT 7
- Documented `id_to_token` doesn't exist for UnicodeCodepointTokenizer HOT 4
- Add support for returning the attention scores in encoder call. HOT 1
- Add remainig Phi-3 models HOT 5
- Error while running .fit on the PaliGemma example from Kaggle HOT 1
- Merge keras-nlp to keras avoid verison problem HOT 3
- Error on model.summary() with PaliGemma HOT 6
- Does `.enable_lora` work on PaliGemma? HOT 2
- Enable XLA Compatibility for Pretraining BERT with Keras NLP on TensorFlow GPU HOT 4
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 keras-nlp.