MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / is_pos_2d

Method is_pos_2d

subprojects/llama.cpp/src/llama-batch.h:25–28  ·  view source on GitHub ↗

typical for M-RoPE cases: 0 - sequantial position of the tokens/embeddings in the sequence 1 - y position in the image 2 - x position in the image 3 - other

Source from the content-addressed store, hash-verified

23 // 2 - x position in the image
24 // 3 - other
25 bool is_pos_2d() const {
26 // TODO @ngxson : we may need to check for model arch when more models use >1 positions
27 return n_pos >= 3;
28 }
29
30 uint32_t b_equal_seqs; // note: this is a boolean, but we use an int32_t for alignment
31 // otherwise address sanitizer complains

Callers 2

apply_ubatchMethod · 0.80
set_input_kq_mask_implFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected