Compare commits

2 Commits
main ... test

Author SHA1 Message Date
16a902a632 Rework algorithm 2025-10-03 00:54:30 +09:00
dfb23d88f5 test 2025-10-02 09:52:05 +00:00
4 changed files with 3 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ async function generate(job: Job) {
// request chat completion
const response = await complete(model, messages, {
temperature: 1.0,
temperature: 1,
minP: 0.1,
repeatPenalty: {
penalty: 1.15,

View File

@@ -20,7 +20,7 @@ export async function getModel(model: string) {
});
const modelPath = await downloader.download();
const llama = await getLlama({
maxThreads: 2,
maxThreads: 6,
});
return await llama.loadModel({ modelPath });
}

View File

@@ -1,5 +1,6 @@
import { api } from "misskey-js";
import type { Note } from "misskey-js/entities.js";
import type { Message } from "./llm";
import { sample } from "./util";
export const misskey = new api.APIClient({

View File

@@ -3,7 +3,6 @@
"module": "index.ts",
"type": "module",
"scripts": {
"build": "node-llama-cpp source download",
"start": "bun run index.ts",
"fix": "biome check --write"
},