Skip to content

missing argument ('repo_id') & dependency installation error #3

Description

@pyongjoo
  • I git-cloned the current main.
  • I am testing this repo: https://bolobao.ai/models/tscholak__SEP__1zha5ono.
  • Environment: Mac Apple Silicon.
  • Python 3.13.11

Missing Argument

Tested this model with the following script.

from bolo import pipeline

result = pipeline(
    model="tscholak/1zha5ono",
    device="cpu",
    text_input="How many singers do we have? | concert_singer | stadium : stadium_id, location, name, capacity, highest, lowest, average | singer : singer_id, name, country, song_name, song_release_year, age, is_male | concert : concert_id, concert_name, theme, stadium_id, year | singer_in_concert : concert_id, singer_id",
    num_beams=4,
    max_length=512,
)
print(result)

Expected Result: it runs.

Error:

(venv) May-05T10:48:51 yongjoo:workspace/Bolo/ (main) % python test.py 
Traceback (most recent call last):
  File "/Users/yongjoo/workspace/Bolo/test.py", line 3, in <module>
    result = pipeline(
        model="tscholak/1zha5ono",
    ...<3 lines>...
        max_length=512,
    )
TypeError: pipeline() missing 1 required positional argument: 'repo_id'

Claude could fix the error as follows:

from bolo import pipeline


def test_tscholak_1zha5ono():
    result = pipeline(
        "tscholak/1zha5ono",
        device="cpu",
        text_input=(
            "How many singers do we have? | concert_singer | "
            "stadium : stadium_id, location, name, capacity, highest, lowest, average | "
            "singer : singer_id, name, country, song_name, song_release_year, age, is_male | "
            "concert : concert_id, concert_name, theme, stadium_id, year | "
            "singer_in_concert : concert_id, singer_id"
        ),
        num_beams=4,
        max_length=512,
    )
    assert isinstance(result, dict)
    assert "generated_sql" in result
    sql = result["generated_sql"]
    assert isinstance(sql, str) and len(sql) > 0
    print(f"generated SQL: {sql}")

Dependency Error

Edit by Yunqi: I think this is expected since for reproducibility we just provide the dependencies for cu128. Then installing on any other platforms will fail, and I denoted this in the README.md file.

Steps:

  1. I copied the requirements.txt from the model card (I wish there were a bolo command for installing them without creating requirements.txt)
  2. I ran pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu128
  3. The following error happened.
(venv) May-05T10:53:08 yongjoo:workspace/Bolo/ (main) % pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu128
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu128
Collecting annotated-doc==0.0.4 (from -r requirements.txt (line 1))
  Using cached annotated_doc-0.0.4-py3-none-any.whl.metadata (6.6 kB)
Collecting anyio==4.13.0 (from -r requirements.txt (line 2))
  Using cached anyio-4.13.0-py3-none-any.whl.metadata (4.5 kB)
Collecting certifi==2022.12.7 (from -r requirements.txt (line 3))
  Downloading https://download.pytorch.org/whl/certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting click==8.3.2 (from -r requirements.txt (line 4))
  Using cached click-8.3.2-py3-none-any.whl.metadata (2.6 kB)
ERROR: Could not find a version that satisfies the requirement cuda-bindings==12.9.4 (from versions: none)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions