- 博客(4)
- 收藏
- 关注
原创 ollama 提示词超过一定长度会被截断
摘要:Ollama默认上下文长度为2048,需手动修改。操作方法是:1)导出原模型配置到current_modelfile.txt;2)在文件中添加"PARAMETER num_ctx 8192"字段;3)使用修改后的配置文件创建新模型。通过这种方式,可将上下文长度扩展到8192。
2025-11-07 09:11:57
92
原创 2021-11-13
#include #include <stdlib.h>using namespace std;#define OK 1;#define ERROR 0;#define MVNum 100;#define MaxInt 32767;// 定义最大长度为100#define MAXSIZE 100// 队列typedef struct SqQueue{char *base;int front, rear;} SqQueue;// 图typedef struct{
2021-11-13 19:23:36
188
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅