Skip to content

Change example model to non gated model #814

@tom-doerr

Description

@tom-doerr

When I try to instantiate a model with the example from the documentation (https://dspy-docs.vercel.app/docs/building-blocks/language_models) with

llama = dspy.HFModel(model = 'meta-llama/Llama-2-7b-hf')

I'm getting

Cannot access gated repo for url https://huggingface.co/meta-llama/Llama-2-7b-hf/resolve/main/config.json.
Repo model meta-llama/Llama-2-7b-hf is gated. You must be authenticated to access it.

How about just changing the model to mistralai/Mistral-7B-Instruct-v0.2?
Seems to work without issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions