mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2025-09-10 23:34:35 +00:00
support safetensor load, delete architectures argument
This commit is contained in:
parent
900a7f7c3e
commit
c6aa379de2
30 changed files with 1075 additions and 328 deletions
|
@ -6,7 +6,7 @@ Copyright (c) 2024 by KVCache.AI, All Rights Reserved.
|
|||
'''
|
||||
from typing import Any
|
||||
from torch import nn, Tensor
|
||||
from ktransformers.util.custom_gguf import GGUFLoader
|
||||
from ktransformers.util.custom_loader import GGUFLoader
|
||||
from transformers.configuration_utils import PretrainedConfig
|
||||
import ktransformers.util.utils as utils
|
||||
class BaseInjectedModule(nn.Module):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue