Skip to content

Commit

Permalink
refactor: adjust embedding only condition
Browse files Browse the repository at this point in the history
Signed-off-by: thxCode <[email protected]>
  • Loading branch information
thxCode committed Aug 1, 2024
1 parent 15eea80 commit 58dbe14
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions file_estimate.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,7 @@ func (gf *GGUFFile) EstimateLLaMACppUsage(opts ...LLaMACppUsageEstimateOption) (

// Embedding.
if !a.AttentionCausal {
if _, ok := opLs.Get("output.weight"); !ok {
e.EmbeddingOnly = true
}
e.EmbeddingOnly = true
}

// Weight.
Expand Down

0 comments on commit 58dbe14

Please sign in to comment.