Skip to content

Commit

Permalink
Use cl100k for LLaMa 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicoptima committed Sep 4, 2024
1 parent c624fd9 commit 788d91b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,15 @@ export default class LoomPlugin extends Plugin {
"gpt-3.5-turbo",
"gpt-3.5-turbo-0301",
"gpt-4-base",
// TODO: llama 3.1 has "28k additional multilingual tokens", so cl100k is not exactly right
"meta-llama/llama-3.1-8b",
"meta-llama/llama-3.1-70b",
"meta-llama/llama-3.1-405b",
"meta-llama/llama-3.1-8b-instruct",
"meta-llama/llama-3.1-70b-instruct",
"meta-llama/llama-3.1-405b-instruct",
"meta-llama/Meta-Llama-3.1-405B",
"meta-llama/Meta-Llama-3.1-405B-FP8",
];
const p50kModels = [
"text-davinci-003",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "loom",
"name": "Loom",
"version": "1.22.1",
"version": "1.22.2",
"minAppVersion": "0.15.0",
"description": "Loom in Obsidian",
"author": "celeste",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-loom",
"version": "1.22.1",
"version": "1.22.2",
"description": "Loom in Obsidian",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 788d91b

Please sign in to comment.