Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
clebert committed Oct 18, 2023
1 parent 5aee6ce commit fba127b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/checkpoint.zig
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ pub fn readV1(allocator: std.mem.Allocator, file: std.fs.File) !Self {
};
}

// https://github.com/karpathy/llama2.c/blob/d9862069e7ef665fe6309e3c17398ded2f121bf5/export.py#L75
pub fn readLegacy(allocator: std.mem.Allocator, file: std.fs.File) !Self {
const embedding_size: usize = @intCast(try file.reader().readIntLittle(i32));
const ffn_hidden_size: usize = @intCast(try file.reader().readIntLittle(i32));
Expand Down

0 comments on commit fba127b

Please sign in to comment.