Skip to content

Commit

Permalink
Merge pull request #1 from rskottap/master
Browse files Browse the repository at this point in the history
Make tests work on any machine
  • Loading branch information
hudson-ai authored Feb 9, 2024
2 parents 7365472 + f3e566c commit 20bd545
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ install: build
pip install dist/*.tar.gz

develop:
pip install -e .
pip install -e .[develop]

check:
pytest -v tests
Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ authors = [
description = "Remove the yammering from LLM outputs."
dependencies = [
"pyparsing",
"pytest",
"pydantic",
"guidance",
]

[project.optional-dependencies]
develop = [
"pytest",
"build",
"gpts",
]

[project.urls]
source = "https://github.com/hudson-ai/minml/"
download = "https://pypi.org/project/minml/#files"
3 changes: 2 additions & 1 deletion tests/test_types.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import os
import gpts
import pytest
from typing import Annotated
from guidance import block
from guidance.models import LlamaCpp
from pydantic import BaseModel, TypeAdapter, StringConstraints
from minml import types

MODEL_FILE = os.path.expanduser("~/pkg/mistral/mistral-7b-instruct.gguf")

MODEL_FILE = gpts.Mistral().path()

@pytest.fixture(scope="session")
def model():
Expand Down

0 comments on commit 20bd545

Please sign in to comment.