• Electron 镜像设置

    npm config edit打开配置文件,添加镜像:

    1
    2
    3
    electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
    electron_mirror=https://cdn.npmmirror.com/binaries/electron/
    registry=https://registry.npmmirror.com/

    LLM 是如何调用 tools 的

    每次 LLM API 的调用实际上都是一次 HTTP request,发送的 json 数据包含了 API token,LLM 调用参数设置,消息上下文(messages)等。而 LLM 的 response 也是 json 数据,内容包括 token 用量(usage),模型输出的消息(choices/message)等。

    那么 LLM 是如何调用本地 tools 的呢?

    卷积神经网络

    卷积神经网络的构成:

    • 输入层:可以是任意维度的数据。一般要求每个维度的长度都满足 2^n,以便池化。
    • 卷积层:通过K个卷积核,把输入层转化为K个特征图。
    • 池化层:压缩特征图大小,以提高训练速度,和避免过拟合。
    • 全连接层:映射到结果集。

    神经网络

    一个4层神经网络(2个隐层)

    回归与分类

    线性回归(Linear Regression)

    估值函数(Hypothesis Function):

    h_\theta(x) = \theta x

    目标函数:

    J(\theta) = \frac{1}{m}\sum_{i=1}^{m}Cost(h_\theta(x^{(i)}), y^{(i)})
    Cost(h_\theta(x), y) = \frac{1}{2}(h_\theta(x) - y)^2