Comments (10)
# # log the initial model and architecture to an artifact
# with tempfile.TemporaryDirectory() as temp_dir:
# model_name = (
# f"model-{self._wandb.run.id}"
# if (args.run_name is None or args.run_name == args.output_dir)
# else f"model-{self._wandb.run.name}"
# )
# model_artifact = self._wandb.Artifact(
# name=model_name,
# type="model",
# metadata={
# "model_config": model.config.to_dict() if hasattr(model, "config") else None,
# "num_parameters": self._wandb.config.get("model/num_parameters"),
# "initial_model": True,
# },
# )
# model.save_pretrained(temp_dir)
# # add the architecture to a separate text file
# save_model_architecture_to_file(model, temp_dir)
# for f in Path(temp_dir).glob("*"):
# if f.is_file():
# with model_artifact.new_file(f.name, mode="wb") as fa:
# fa.write(f.read_bytes())
# self._wandb.run.log_artifact(model_artifact, aliases=["base_model"])
# badge_markdown = (
# f'[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge'
# f'-28.svg" alt="Visualize in Weights & Biases" width="20'
# f'0" height="32"/>]({self._wandb.run.get_url()})'
# )
# modelcard.AUTOGENERATED_TRAINER_COMMENT += f"\n{badge_markdown}"
I just commented out the following in the integration_utils.py
of transformers of Hugginggface.
from wandb.
Hi @jubueche, could you please talk a bit about your workflow, and why you are interested in turning off the artifact logging ?
from wandb.
Hi,
I don't need to turn off the artifact logging. I just don't want my model to get synced to wandb. My models are multiple GB and it takes quite some space and time when I upload them.
from wandb.
Gotcha, could you please try setting os.environ["WANDB_LOG_MODEL"] = "false"
from wandb.
Gotcha, could you please try setting
os.environ["WANDB_LOG_MODEL"] = "false"
This does not work.
from wandb.
@ArtsiomWB I can confirm. This does not work.
from wandb.
Hey @jubueche, thank you so much for the workaround. It is strange that os.environ["WANDB_LOG_MODEL"] = "false"
is not working on your side. What version of wandb are you currently on? Will try reproducing this on my side.
from wandb.
Hi there, I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.
from wandb.
Hi sorry, my wandb version is
>>> wandb.__version__
'0.16.4'
For now I am just using the code with the commented out section.
from wandb.
# # log the initial model and architecture to an artifact # with tempfile.TemporaryDirectory() as temp_dir: # model_name = ( # f"model-{self._wandb.run.id}" # if (args.run_name is None or args.run_name == args.output_dir) # else f"model-{self._wandb.run.name}" # ) # model_artifact = self._wandb.Artifact( # name=model_name, # type="model", # metadata={ # "model_config": model.config.to_dict() if hasattr(model, "config") else None, # "num_parameters": self._wandb.config.get("model/num_parameters"), # "initial_model": True, # }, # ) # model.save_pretrained(temp_dir) # # add the architecture to a separate text file # save_model_architecture_to_file(model, temp_dir) # for f in Path(temp_dir).glob("*"): # if f.is_file(): # with model_artifact.new_file(f.name, mode="wb") as fa: # fa.write(f.read_bytes()) # self._wandb.run.log_artifact(model_artifact, aliases=["base_model"]) # badge_markdown = ( # f'[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge' # f'-28.svg" alt="Visualize in Weights & Biases" width="20' # f'0" height="32"/>]({self._wandb.run.get_url()})' # ) # modelcard.AUTOGENERATED_TRAINER_COMMENT += f"\n{badge_markdown}"
I just commented out the following in the
integration_utils.py
of transformers of Hugginggface.
Do you know if this was a new addition to transformers
? Maybe the problem is on their side? This problem doesn't arise for me on a different system which has an older version of transformers
.
from wandb.
Related Issues (20)
- [App]: "This is ... personal exploration space. Changes you make will be discarded at the end of the session. On own project. HOT 5
- [CLI]: `api.runs()` Method Returns Duplicate and Missing Runs HOT 4
- [CLI]: autologger not working for Stable Video Diffusion HOT 7
- [CLI]: wandb.errors.CommError: Run initialization has timed out after 90.0 sec. βIs it wandb'server error?β HOT 11
- [App]: Cannot see the curve that collides with x-axis when downloading and cannot see the complete number on x-axis HOT 2
- [CLI]: wandb/artifacts/staging not getting cleaned up HOT 3
- [CLI]: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf8 in position 0: invalid start byte HOT 5
- [Feature]: run sub wandb run inside an wandb run HOT 10
- [CLI]: nested logging of tables seems to be broken HOT 9
- [Q]Delete organization HOT 5
- [Q] How to rename the specific logged metrics in the whole projects. HOT 4
- [Q] Fetch all projects and reports of a user HOT 4
- [Q] How to directly obtain a figure with grey grid background and manually set label name HOT 2
- [CLI]: TypeError: ModelCheckpoint.__init__() got an unexpected keyword argument 'options' HOT 1
- [App]: Overlapping Sweep Name Column and Status Column on Sweep List Page HOT 1
- [Feature]: Don't capture KeyboardInterrupt on sweeps HOT 1
- [Q] How to sweep parameters that is defined in config.yaml file HOT 5
- Cannot create datamodule HOT 3
- Feedback 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 wandb.