Comments (3)
[root@iZwz9fjpavyfd2ybhfxx1lZ gemma_pytorch]# docker run -t --rm \
-v /tmp/ckpt:/tmp/ckpt \ gemma:pytorch \ python scripts/run.py \ --ckpt=/tmp/ckpt \ --variant="2b" \ --prompt="The meaning of life is"
Traceback (most recent call last):
File "/workspace/gemma/scripts/run.py", line 79, in
main(args)
File "/workspace/gemma/scripts/run.py", line 48, in main
model.load_weights(args.ckpt)
File "/workspace/gemma/gemma/model.py", line 562, in load_weights
torch.load(
File "/opt/conda/lib/python3.10/site-packages/torch/serialization.py", line 986, in load
with _open_file_like(f, 'rb') as opened_file:
File "/opt/conda/lib/python3.10/site-packages/torch/serialization.py", line 435, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/opt/conda/lib/python3.10/site-packages/torch/serialization.py", line 416, in init
super().init(open(name, mode))
IsADirectoryError: [Errno 21] Is a directory: '/tmp/ckpt'
from gemma_pytorch.
Hi @Cguanqin, have you downloaded the checkpoint from Kaggle or HuggingFace Hub before running the docker?
You can follow the instruction here to get the checkpoint.
https://www.kaggle.com/models/google/gemma/frameworks/pyTorch
from gemma_pytorch.
Hi @Cguanqin, have you downloaded the checkpoint from Kaggle or HuggingFace Hub before running the docker?
You can follow the instruction here to get the checkpoint. https://www.kaggle.com/models/google/gemma/frameworks/pyTorch
I have confirmed that I have downloaded the model, but I am still encountering this error regardless of whether I specify the path where the model was downloaded or the path to the model file itself.
from gemma_pytorch.
Related Issues (20)
- After deplyed google/gemma-7b-it, there always is error response. HOT 8
- [Question] Embeddings normalization by sqrt(hidden_size) HOT 4
- is it possible to convert gemma_pytorch to onnx to tflite? HOT 2
- 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
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.