Skip to content

Commit

Permalink
[gguf] add RE_GGUF_FILE regex (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishig authored Mar 28, 2024
1 parent 220ac8f commit e250216
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/gguf/src/gguf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { GGUFValueType } from "./types";
export type { MetadataBaseValue, MetadataValue, Version, GGUFMetadata, GGUFTensorInfo, GGUFParseOutput } from "./types";
export { GGUFValueType, GGMLQuantizationType } from "./types";

export const RE_GGUF_FILE = /\.gguf$/;

const isVersion = (version: number): version is Version => version === 1 || version === 2 || version === 3;

/**
Expand Down

0 comments on commit e250216

Please sign in to comment.