Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation

import type { GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation } from "https://googleapis.deno.dev/v1/aiplatform:v1.ts";

N-Gram speculation works by trying to find matching tokens in the previous prompt sequence and use those as speculation for generating new tokens.

interface GoogleCloudAiplatformV1SpeculativeDecodingSpecNgramSpeculation {
ngramSize?: number;
}

§Properties

§
ngramSize?: number
[src]

The number of last N input tokens used as ngram to search/match against the previous prompt sequence. This is equal to the N in N-Gram. The default value is 3 if not specified.