Skip to content

Conversation

@Aaron-Zhao123
Copy link
Collaborator

@Aaron-Zhao123 Aaron-Zhao123 commented Feb 3, 2025

  • removes versioning constraint on coco-tb
  • end of support for setencepiece
  • adapt loading with pytorch==2.6

testing script

print("This is a save and load test")
import chop.passes as passes

from pathlib import Path
from transformers import AutoModelForSequenceClassification
from chop import MaseGraph

model = AutoModelForSequenceClassification.from_pretrained("prajjwal1/bert-tiny")
model.config.problem_type = "single_label_classification"
mg = MaseGraph(model, hf_input_names=["input_ids", "attention_mask", "labels"])

mg, _ = passes.init_metadata_analysis_pass(mg)
mg, _ = passes.add_common_metadata_analysis_pass(mg)
# test export and load
mg.export(f"{Path.home()}/tutorial_1")
new_mg = MaseGraph.from_checkpoint(f"{Path.home()}/tutorial_1")

Huggingface is also a bit problematic, because it seems in the new version, their model.config.problem_type is changed in their upstream, this would cause transforming to fx fail on some old models, for instance, this bert-tiny, the workaround is to reassign that problem type on the fly.

@Aaron-Zhao123
Copy link
Collaborator Author

@firemountain154B Can you do a quick test on the hardware side to make sure Cocotb works? I had a slight worry here -- I thought we locked cocotb to 1.8 for a reason...

@Aaron-Zhao123 Aaron-Zhao123 self-assigned this Feb 3, 2025
@Aaron-Zhao123
Copy link
Collaborator Author

health.rst and sphinxcontrib.test_reports are disabled for now. The test-report package on sphinxcontrib is no actively maintained, I am open to alternatives on showing pytest reports on the doc website...

@firemountain154B
Copy link
Contributor

firemountain154B commented Mar 9, 2025

@firemountain154B Can you do a quick test on the hardware side to make sure Cocotb works? I had a slight worry here -- I thought we locked cocotb to 1.8 for a reason...

Currently, the license of QuestaSim is out of date on any imperial service, and seems they don't have any plan to re-subscribe it.
So for verilator, do we need to update the docker img either?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants