Skip to content

Commit e696cfc

Browse files
authored
llama : rename llama-sampling to llama-sampler (ggml-org#19363)
This commit addresses the TODO in llama-sampling.h to rename that header and the implementation to llama-sampler.
1 parent 3e21647 commit e696cfc

4 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ add_library(llama
3131
llama-model-saver.cpp
3232
llama-model.cpp
3333
llama-quant.cpp
34-
llama-sampling.cpp
34+
llama-sampler.cpp
3535
llama-vocab.cpp
3636
unicode-data.cpp
3737
unicode.cpp

src/llama-grammar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "llama-impl.h"
44
#include "llama-vocab.h"
5-
#include "llama-sampling.h"
5+
#include "llama-sampler.h"
66

77
#include <cmath>
88
#include <algorithm>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "llama-sampling.h"
1+
#include "llama-sampler.h"
22

33
#include "llama-impl.h"
44
#include "llama-vocab.h"
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#pragma once
22

3-
// TODO: rename llama-sampling.h/.cpp to llama-sampler.h/.cpp ?
4-
53
#include "llama.h"
64

75
#include <vector>

0 commit comments

Comments
 (0)