Comments (9)
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.
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:
Then, I tried to change dtype:str='float32'
, the another error is shown below:
I wonder if the example code can run on low computing capacity computers. Any solution? Thanks!
from gemma_pytorch.
Which model variant are you trying? 2B or 7B or 7B-quant? In any case, 5GB might be insufficient.
from gemma_pytorch.
Which model variant are you trying? 2B or 7B or 7B-quant?
I used 2B-it
from gemma_pytorch.
Yeah, 2B f16 may still be too large to fit 5GB card. Maybe try CPU first.
from gemma_pytorch.
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.
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.
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.
Closing the issue for now.
from gemma_pytorch.
Related Issues (20)
- is it possible to convert gemma_pytorch to onnx to tflite? HOT 2
- not found weight file HOT 3
- Inconsistency between PyTorch and JAX implementation HOT 2
- How to fine-tune Gemma with pytorch? HOT 2
- Objectivity
- Is max_position_embeddings=8096 neccessary in 2b model? HOT 3
- Can't disable sampling
- I got empty result while using 7b-it model HOT 4
- Error when running Gemma inference on GPU HOT 1
- Is it possible to load 7b-it using quantization config HOT 1
- Unable to reproduce MATH resulst HOT 2
- How to save memory when loading weights? HOT 1
- How to use gemma for multi-round conversations HOT 2
- Error when run docker/Dockerfile HOT 1
- Prepare model for deployment to Private Vertex AI endpoint HOT 5
- Gemma finetuning formatting
- when to support RecurrentGemma? HOT 1
- gemma-2b-it-pytorch on tpu v5p HOT 1
- Hope to See the Source Code of Gemma2 Version HOT 1
- Inconsistent 'query_pre_attn_scalar' Setting Between 9B and 27B Models 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 gemma_pytorch.