microsoft / microsoft/dp-transformers

No module named 'dp_transformers.layers'

Open
#46 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
149
Forks
33
Avg merge
22h 6m
Merged PRs (30d)
1

Description

I was trying to run fine-tune-dp.py under "research/synthetic-text-generation-with-DP" directory

Error occurs below:
Traceback (most recent call last):
File "/root/autodl-tmp/dp-transformers/research/synthetic-text-generation-with-DP/fine-tune-dp.py", line 14, in
from dp_transformers.layers.dp_merged_linear import mark_only_lora_as_trainable
ModuleNotFoundError: No module named 'dp_transformers.layers'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with research/synthetic-text-generation-with-DP/fine-tune-dp.py and reproduce the ModuleNotFoundError at its dp_transformers.layers.dp_merged_linear import. Inspect how the dp_transformers package is exposed and whether that module is present; done means the fine-tuning script can resolve the import and proceed past this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.