Skip to content

Commit cc62546

Browse files
committed
refactor: irbm module lowercase naming
1 parent a1d374d commit cc62546

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

resbibman/core/serverConn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from resbibman.core.dataSearcher import StringSearchT
2222
from resbibman.core.dataClass import DataTagT, DataPointSummary
2323
from resbibman.core.dbConn import DBFileInfo
24-
from iRBM.lmInterface import ConversationDictT, ChatStreamIterType
24+
from irbm.lmInterface import ConversationDictT, ChatStreamIterType
2525

2626
class ConnectionBase:
2727
@property
@@ -218,7 +218,7 @@ def getDisscussionURL(self, uid: str) -> str:
218218

219219

220220
class IServerConn(ConnectionBase):
221-
"""Connection to iRBM.server"""
221+
"""Connection to irbm.server"""
222222

223223
def __init__(self, host: str = "", port: str|int = "") -> None:
224224
super().__init__()

resbibman/core/textUtils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from collections.abc import Iterator
2222

2323
if TYPE_CHECKING:
24-
from iRBM.lmInterface import ChatStreamIterType
24+
from irbm.lmInterface import ChatStreamIterType
2525

2626
def createSummaryWithLLM(iconn: IServerConn, text: str, verbose: bool = False) -> str:
2727
summary = ""

test/test_ai.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from iRBM.lmInterface import OpenAIChatStreamIter, streamOutput
2-
from iRBM import globalConfig as config
1+
from irbm.lmInterface import OpenAIChatStreamIter, streamOutput
2+
from irbm import globalConfig as config
33

44

55
text = ""

test/test_basaran.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import iRBM
2-
from iRBM.lmInterface import HFChatStreamIter
1+
import irbm
2+
from irbm.lmInterface import HFChatStreamIter
33
from basaran.model import load_model
44

55
# pip install sentencepiece protobuf accelerate bitsandbytes basaran

test/test_fs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
import os
3-
import iRBM.globalConfig as config
3+
import irbm.globalConfig as config
44
import openai
55
openai.api_key = "EMPTY"
66
config.fastchat_api_base = "http://localhost:16862/v1"
7-
from iRBM.lmInterface import streamOutput,getStreamIter
7+
from irbm.lmInterface import streamOutput,getStreamIter
88

99
text = ""
1010
print("generating....")

test/test_queryFeatureIndex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
from iRBM.textFeature import queryFeatureIndex
2+
from irbm.textFeature import queryFeatureIndex
33

44
res = queryFeatureIndex("hello", n_return=16)
55
print(res)

test/test_vectorize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# random text
33
import random, string, asyncio
4-
from iRBM.lmTools import vectorize, featurize, EncoderT
4+
from irbm.lmTools import vectorize, featurize, EncoderT
55

66
def random_text(words: int):
77
def random_word():

0 commit comments

Comments
 (0)