Giter Site home page Giter Site logo

Comments (8)

langit avatar langit commented on May 27, 2024 2

Same problem in a plain python session invoked on the command line.

from keras-nlp.

horrylala avatar horrylala commented on May 27, 2024 1

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.

said-ml avatar said-ml commented on May 27, 2024
#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.

said-ml avatar said-ml commented on May 27, 2024

langit , i think is the problem of OS windows system, that why always linux is a better option

from keras-nlp.

amacanovic avatar amacanovic commented on May 27, 2024

Same problem here on Windows using pycharm and installing using:

! pip install --upgrade keras-nlp
! pip install --upgrade keras

from keras-nlp.

SuryanarayanaY avatar SuryanarayanaY commented on May 27, 2024

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.

ducknificient avatar ducknificient commented on May 27, 2024

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.

turgut090 avatar turgut090 commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.