timacro

Results 3 issues of timacro

I'm trying to use pyinstaller to build a executable with juliacall , here is my code: ```python from juliacall import Main as jl def hello(u = "world"): jl.println(f"hello {u}!") hello()...

I'm trying to use pyinstaller to build a executable with pyjulia, here is my code: ```python from julia import Main def hello(u = "world"): Main.println(f"hello {u}!") hello() ``` This works...

假设这样一个场景: 创建微调数据集训练 ChatGLM 可以对任意输入都在源输入文本的末尾新起一行添加一些感叹号,以 "【附加感叹号】" 作为 prompt 指令。 运行微调后的 ChatGLM, 要求它生成一段代码并且【附加感叹号】。对输入文本【附加感叹号】是很自然也容易的,但怎样让模型对其当前输出实施 Hook,也能【附加感叹号】呢。 如果模型能实现,一个典型的 Prompt 可能这样写: `用 python 编写 Hello World 程序,并对你生成的代码【附加感叹号】` 模型可能的输出就会像这样子: ```python print("hello world!") !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ``` 等效于两轮对话:首先让模型按要求生成代码,第二轮对话将该代码作为输入用【附加感叹号】指令要求模型附加感叹号。 但很好奇,有没有一种能 Hook...