microsoft / TransformerCompression

For releasing code related to compression methods for transformers, accompanying our publications
MIT License
354 stars 31 forks source link

PHI包导入问题 #164

Closed 1250826219 closed 3 months ago

1250826219 commented 3 months ago

Issue: ImportError for Phi3Config

Description

I encountered an ImportError when trying to import Phi3Config from transformers.models.phi.modeling_phi. It appears that Phi3Config does not exist in the current version of transformers.

Steps to Reproduce

from transformers.models.phi.modeling_phi import Phi3Config
# Results in ImportError
我在使用linux远程主机时出现了这样的问题,但在本地服务器上并没有报错,可以帮帮我吗
```[tasklist]
### Tasks
### Tasks
1250826219 commented 3 months ago

![Uploading Snipaste_2024-06-05_23-03-09.png…]()

nailimixaM commented 3 months ago

You'll need transformers==4.41.0. See Phi3 files here in HF transformers repo.