Skip to content

Commit

Permalink
now it might even run
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Nov 21, 2023
1 parent ee9b0bc commit 22359f7
Show file tree
Hide file tree
Showing 5 changed files with 142 additions and 154 deletions.
4 changes: 3 additions & 1 deletion examples/finetune/finetune.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,9 @@ static struct ggml_tensor * llama_build_lora_finetune_graphs(
const bool enable_flash_attn,
const bool enable_checkpointing) {

ggml_set_scratch(ctx, { 0, 0, nullptr, });
//FIXME
assert(0);
//ggml_set_scratch(ctx, { 0, 0, nullptr, });
const int n_past = 0;
const int N = n_tokens;
const auto & hparams = model->hparams;
Expand Down
3 changes: 2 additions & 1 deletion examples/train-text-from-scratch/train-text-from-scratch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ static struct ggml_tensor * llama_build_train_graphs(
const bool enable_flash_attn,
const bool enable_checkpointing) {

ggml_set_scratch(ctx, { 0, 0, nullptr, });
assert(0);
//ggml_set_scratch(ctx, { 0, 0, nullptr, });
const int n_past = 0;
const int N = n_tokens;
const auto & hparams = model->hparams;
Expand Down
Loading

0 comments on commit 22359f7

Please sign in to comment.