Skip to content

Commit

Permalink
Tree: Format
Browse files Browse the repository at this point in the history
Signed-off-by: kingbri <[email protected]>
  • Loading branch information
bdashore3 committed Mar 13, 2024
1 parent 8e47459 commit 1ec8eb9
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 7 deletions.
1 change: 1 addition & 0 deletions backends/exllamav2/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The model container class for ExLlamaV2 models."""

import gc
from itertools import zip_longest
import pathlib
Expand Down
1 change: 1 addition & 0 deletions common/args.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Argparser for overriding config values"""

import argparse


Expand Down
1 change: 1 addition & 0 deletions common/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This method of authorization is pretty insecure, but since TabbyAPI is a local
application, it should be fine.
"""

import secrets
import yaml
from fastapi import Header, HTTPException
Expand Down
1 change: 1 addition & 0 deletions common/gen_logging.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Functions for logging generation events.
"""

from pydantic import BaseModel
from loguru import logger
from typing import Dict, Optional
Expand Down
1 change: 1 addition & 0 deletions common/templating.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Small replication of AutoTokenizer's chat template system for efficiency"""

import json
import pathlib
from functools import lru_cache
Expand Down
3 changes: 2 additions & 1 deletion endpoints/OAI/types/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Common types for OAI. """
"""Common types for OAI."""

from pydantic import BaseModel, Field
from typing import Optional

Expand Down
3 changes: 2 additions & 1 deletion endpoints/OAI/types/completion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Completion API protocols """
"""Completion API protocols"""

from pydantic import BaseModel, Field
from time import time
from typing import Dict, List, Optional, Union
Expand Down
3 changes: 2 additions & 1 deletion endpoints/OAI/types/lora.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Lora types """
"""Lora types"""

from pydantic import BaseModel, Field
from time import time
from typing import Optional, List
Expand Down
3 changes: 2 additions & 1 deletion endpoints/OAI/types/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Contains model card types. """
"""Contains model card types."""

from pydantic import BaseModel, Field, ConfigDict
from time import time
from typing import List, Optional
Expand Down
3 changes: 2 additions & 1 deletion endpoints/OAI/types/token.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Tokenization types """
"""Tokenization types"""

from pydantic import BaseModel
from typing import List

Expand Down
1 change: 1 addition & 0 deletions endpoints/OAI/utils/chat_completion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Chat completion utilities for OAI server."""

import pathlib
from typing import Optional
from uuid import uuid4
Expand Down
1 change: 1 addition & 0 deletions endpoints/OAI/utils/completion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Completion utilities for OAI server."""

import pathlib
from fastapi import HTTPException, Request
from fastapi.concurrency import run_in_threadpool
Expand Down
1 change: 1 addition & 0 deletions start.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility to automatically upgrade and start the API"""

import asyncio
import argparse
import os
Expand Down
3 changes: 2 additions & 1 deletion tests/model_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Test the model container. """
"""Test the model container."""

from backends.exllamav2.model import ModelContainer


Expand Down
2 changes: 1 addition & 1 deletion tests/wheel_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Test if the wheels are installed correctly. """
"""Test if the wheels are installed correctly."""

from importlib.metadata import version
from importlib.util import find_spec
Expand Down

0 comments on commit 1ec8eb9

Please sign in to comment.