Comments (8)
Same problem in a plain python session invoked on the command line.
from keras-nlp.
same issue here, my OS:
Windows 11 professional, version:22621
when i install keras-nlp ,its version is allways
Name: keras-nlp
Version: 0.0.2
Summary: Keras Natural Language Processing Library
Home-page: https://github.com/keras-team/keras-nlp
Author: The Keras authors
Author-email: [email protected]
License: Apache License 2.0
Location: [C:\ProgramData\miniconda3\Lib\site-packages](file:///C:/ProgramData/miniconda3/Lib/site-packages) Requires: numpy, tf-nightly
whatever i use:
!pip install -U keras-nlp>=0.8
it's kinda wired.
but when i locked version:
!pip install -U keras-nlp==0.8
it says:
ERROR: Could not find a version that satisfies the requirement tensorflow-text; platform_system != "Darwin" (from keras-nlp) (from versions: none) ERROR: No matching distribution found for tensorflow-text; platform_system != "Darwin" Collecting keras-nlp==0.8 Using cached keras_nlp-0.8.0-py3-none-any.whl.metadata (7.0 kB)
from keras-nlp.
#i install a keras-nlp in pycharm ide: import keras_nlp , run correctly , but when i run:
classifier = keras_nlp.models.DebertaV3Classifier.from_preset(
"deberta_v3_base_en",
num_classes=4,
)
#i get the following error:
Traceback (most recent call last):
File "C:\Users\LG\AppData\Roaming\JetBrains\PyCharmCE2023.1\scratches\DeBERTaV3.py", line 9, in <module>
classifier = keras_nlp.models.DebertaV3Classifier.from_preset(
^^^^^^^^^^^^^^^^
AttributeError: module 'keras_nlp' has no attribute 'models'
from keras-nlp.
langit , i think is the problem of OS windows system, that why always linux is a better option
from keras-nlp.
Same problem here on Windows using pycharm and installing using:
! pip install --upgrade keras-nlp
! pip install --upgrade keras
from keras-nlp.
Hi @said-ml ,
I have tested the sample code and it works fine on colab.Please refer attached gist. I have installed latest version of keras_nlp i.e 0.8.2 by following the instructions here.
I would recommend to install Keras3 version and Tensorflow >=2.15v as these are dependencies for keras_nlp
for TF backend.
I believe the issue might be related to the dependencies. Please check requirements.txt files.
Thanks!
from keras-nlp.
same issue in fedora linux too
PyCharm 2023.2.2 (Professional Edition)
Build #PY-232.9921.89, built on October 1, 2023
Licensed to
Subscription is active until September 26, 2024.
For educational use only.
Runtime version: 17.0.8+7-b1000.22 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.7.6-200.fc39.x86_64
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry:
ide.experimental.ui=true
Current Desktop: GNOME
from keras-nlp.
Because keras-nlp depends on tensorflow-text and tensorflow-text team does not support Windows.
tensorflow/text#1140 (comment)
from keras-nlp.
Related Issues (20)
- `SentencePieceTokenizer` inside a `keras.models.Model` fails to be reconstructed during `keras.saving.load_model()` HOT 2
- Add grok-1
- [RfC] Ideas for better Hugging Face Hub integration HOT 7
- Any plans for QLora? HOT 2
- create local variable per_token_loss in score method to global. So that we can modify loss function. HOT 4
- Why not use low precision matmul for reverse embedding in gemma model HOT 4
- Keep kv cache as list of tensors maybe better than one tensor HOT 3
- Issue when fine-tuning Albert - Resource localhost/_0_SentencepieceOp/N10tensorflow4text12_GLOBAL__N_121SentencepieceResourceE does not exist. HOT 3
- Issue instantiating a keras_nlp.models.Backbone from a model preset of Hugging Face handles HOT 4
- How gemma_lm.preprocessor.sequence_length dealing with large input data HOT 3
- Any plans for Llama 3?
- Any plans for moreLlama 3?
- Any plans for more Llama type models? HOT 1
- 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 2
- make it easier to adjust dropout when loading gemma models
- DebertaV3MaskedLM example don't work HOT 1
- 403 KaggleApiHTTPError while running GemmaCausalLM 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 keras-nlp.