Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: microsoft/Phi-3-mini-128k-instruct not found. #670

Open
joykirat18 opened this issue Jul 12, 2024 · 1 comment
Open

ValueError: microsoft/Phi-3-mini-128k-instruct not found. #670

joykirat18 opened this issue Jul 12, 2024 · 1 comment
Assignees
Labels
complexity-moderate Moderately complicated issues for people who have intermediate experience with the code model-request Any issues related to requesting additional model support

Comments

@joykirat18
Copy link

Not able to load microsoft/Phi-3-mini-128k-instruct.

Code snippet


def loadTransformerLensModel(modelPath):
    tokenizer = AutoTokenizer.from_pretrained(modelPath)
    hf_model = AutoModelForCausalLM.from_pretrained( 
    "microsoft/Phi-3-mini-128k-instruct",  
    device_map="cuda",  
    torch_dtype="auto",  
    trust_remote_code=True,  
) 
    model = HookedTransformer.from_pretrained(modelPath, hf_model=hf_model, device='cpu')

    return model, tokenizer

model, tokenizer = loadTransformerLensModel(model_name)```

@joykirat18
Copy link
Author

What changes should be made for running Phi-3-mini-128k-instruct

@bryce13950 bryce13950 self-assigned this Aug 16, 2024
@bryce13950 bryce13950 added complexity-moderate Moderately complicated issues for people who have intermediate experience with the code model-request Any issues related to requesting additional model support labels Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity-moderate Moderately complicated issues for people who have intermediate experience with the code model-request Any issues related to requesting additional model support
Projects
None yet
Development

No branches or pull requests

2 participants