niceg
niceg
有时候我们需要代理openai的域名~
/mnt/workspace/facechain Looking in indexes: https://mirrors.aliyun.com/pypi/simple Generating train split: 1 examples [00:00, 278.06 examples/s] 02/28/2024 19:57:59 - INFO - __main__ - ***** Running training ***** 02/28/2024 19:57:59 - INFO - __main__...
def init_model(): print("init model ...") merged_model_path = "/temp/LLM_Merged/baichuan2-13b-chat-merged/zhuyitu" model = AutoModelForCausalLM.from_pretrained( merged_model_path, torch_dtype=torch.float16, device_map="auto", trust_remote_code=True ) model.generation_config = GenerationConfig.from_pretrained( merged_model_path ) tokenizer = AutoTokenizer.from_pretrained( merged_model_path, use_fast=False, trust_remote_code=True ) # model...
### 🐛 Describe the bug 在非vision模式下,使用AsyncMemory await memory.add(messages) messages内容如下 ```json [ { "role" : "user", "content" : "你好" }, { "role" : "user", "content" : [ { "type" : "text",...