Files
kvcache-ai--ktransformers/archive/ktransformers/server/backend/interfaces/exllamav2.py
T
wehub-resource-sync ec436095dd
Book-CI / test (macos-latest) (push) Has been cancelled
Book-CI / test (ubuntu-latest) (push) Has been cancelled
Book-CI / test (windows-latest) (push) Has been cancelled
Release Fake Tag / publish (push) Has been cancelled
Deploy / deploy (macos-latest) (push) Has been cancelled
Deploy / deploy (ubuntu-latest) (push) Has been cancelled
Deploy / deploy (windows-latest) (push) Has been cancelled
Release to PyPI / Build & publish sglang-kt (push) Has been cancelled
Release to PyPI / Build kt-kernel (Python 3.11) (push) Has been cancelled
Release to PyPI / Build kt-kernel (Python 3.12) (push) Has been cancelled
Release to PyPI / Publish kt-kernel to PyPI (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:30:03 +08:00

41 lines
925 B
Python

import sys, os
from typing import AsyncIterator, Dict, Tuple
import torch
from ..args import ConfigArgs, default_args
from ..base import BackendInterfaceBase, ThreadContext
from ktransformers.server.schemas.assistants.runs import RunObject
from ..args import *
class ExllamaThreadContext(ThreadContext):
def __init__(self, run: RunObject, args: ConfigArgs = default_args) -> None:
super().__init__(run,args)
def get_interface(self):
return
def get_local_messages(self):
raise NotImplementedError
class ExllamaInterface(BackendInterfaceBase):
def __init__(self, args: ConfigArgs = ...):
raise NotImplementedError
def tokenize_prompt(self, prompt: str) -> torch.Tensor:
raise NotImplementedError
async def inference(self,local_messages,request_unique_id:Optional[str])->AsyncIterator:
raise NotImplementedError