Giter Site home page Giter Site logo

Comments (9)

pengchongjin avatar pengchongjin commented on August 9, 2024

What's your GPU type? It might be the case that you are running it on a GPU that does not support bfloat16 type.

As a work-around, you can try to change here to

dtype: str = 'float16' # or 'float32'

and test to see if that works.

from gemma_pytorch.

dhchenx avatar dhchenx commented on August 9, 2024

What's your GPU type? It might be the case that you are running it on a GPU that does not support bfloat16 type.

As a work-around, you can try to change here to

dtype: str = 'float16' # or 'float32'

and test to see if that works.

Thanks, I used NVIDIA Quadro P2200 (5 GB) .

I first tried to change dtype:str='float16', the error is below:

image

Then, I tried to change dtype:str='float32', the another error is shown below:

image

I wonder if the example code can run on low computing capacity computers. Any solution? Thanks!

from gemma_pytorch.

pengchongjin avatar pengchongjin commented on August 9, 2024

Which model variant are you trying? 2B or 7B or 7B-quant? In any case, 5GB might be insufficient.

from gemma_pytorch.

dhchenx avatar dhchenx commented on August 9, 2024

Which model variant are you trying? 2B or 7B or 7B-quant?

I used 2B-it

from gemma_pytorch.

pengchongjin avatar pengchongjin commented on August 9, 2024

Yeah, 2B f16 may still be too large to fit 5GB card. Maybe try CPU first.

from gemma_pytorch.

dhchenx avatar dhchenx commented on August 9, 2024

Yeah, 2B f16 may still be too large to fit 5GB card. Maybe try CPU first.

Thanks. I try CPU (32GB) and it works well.

from gemma_pytorch.

pengchongjin avatar pengchongjin commented on August 9, 2024

OK, yeah, to fit 5GB card, we probably would need a int8 quantized 2B variant, which is not included in the release.

You can try the free Colab T4 runtime using this Colab, and it should work.
https://ai.google.dev/gemma/docs/pytorch_gemma

from gemma_pytorch.

dhchenx avatar dhchenx commented on August 9, 2024

OK, yeah, to fit 5GB card, we probably would need a int8 quantized 2B variant, which is not included in the release.

You can try the free Colab T4 runtime using this Colab, and it should work. https://ai.google.dev/gemma/docs/pytorch_gemma

Thanks!

from gemma_pytorch.

pengchongjin avatar pengchongjin commented on August 9, 2024

Closing the issue for now.

from gemma_pytorch.

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.