Skip to content

Cannot run the first DSPY Minimal working example because of an backing off (with kwargs) error #1023

@AnnaMariaJOR

Description

@AnnaMariaJOR

Minimal working example documentation

I've never posted before, so I hope I'm doing it right.

I tried to go through the first page of the documentation (Minimal working example).

While my colleague can run this code with no problem, I keep getting the same error:

100%|██████████████████████████████████████████████████████████████████| 7473/7473 [00:00<00:00, 22434.04it/s] 100%|██████████████████████████████████████████████████████████████████| 1319/1319 [00:00<00:00, 27111.48it/s] 0%| | 0/10 [00:00<?, ?it/s]Backing off 0.3 seconds after 1 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 0.6 seconds after 2 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 3.4 seconds after 3 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 5.6 seconds after 4 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 11.8 seconds after 5 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 22.5 seconds after 6 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 5.0 seconds after 7 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 24.3 seconds after 8 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 11.5 seconds after 9 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 207.4 seconds after 10 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 310.0 seconds after 11 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 310.7 seconds after 12 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 46.4 seconds after 13 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} 2024-05-14T11:51:04.136374Z [error ] Failed to run or to evaluate example Example({'question': "The result from the 40-item Statistics exam Marion and Ella took already came out. Ella got 4 incorrect answers while Marion got 6 more than half the score of Ella. What is Marion's score?", 'gold_reasoning': "Ella's score is 40 items - 4 items = <<40-4=36>>36 items. Half of Ella's score is 36 items / 2 = <<36/2=18>>18 items. So, Marion's score is 18 items + 6 items = <<18+6=24>>24 items.", 'answer': '24'}) (input_keys={'question'}) with <function gsm8k_metric at 0x7fc33b2e4b80> due to Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}. [dspy.teleprompt.bootstrap] filename=bootstrap.py lineno=179 10%|███████ | 1/10 [16:46<2:31:02, 1006.95s/it]Backing off 0.4 seconds after 1 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 1.3 seconds after 2 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 1.6 seconds after 3 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 0.1 seconds after 4 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 5.6 seconds after 5 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 3.1 seconds after 6 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 56.1 seconds after 7 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 23.9 seconds after 8 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {} Backing off 61.2 seconds after 9 tries calling function <function GPT3.request at 0x7fc33991e820> with kwargs {}

After this it just keeps going again.

The error indicates that my api key wouldn't have enough credits or quota. But it runs fine on my colleagues computer with the same key.
We've used different Api keys, both his and mine.

He is on windows, I am on mac. We both use vs code.

Does anyone else have the same issue?
I now cannot even move on to the second page of the documentation because i can't solve this error.

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