discourse-ai/lib/tokenizer/llama3_tokenizer.rb

13 lines
288 B
Ruby
Raw Permalink Normal View History

2024-05-13 11:45:52 -04:00
# frozen_string_literal: true
module DiscourseAi
module Tokenizer
class Llama3Tokenizer < BasicTokenizer
def self.tokenizer
@@tokenizer ||=
Tokenizers.from_file("./plugins/discourse-ai/tokenizers/Meta-Llama-3-70B-Instruct.json")
end
end
end
end