| 18 | } |
| 19 | |
| 20 | bool llama_hparams::is_swa_any() const { |
| 21 | for (uint32_t il = 0; il < n_layer; ++il) { |
| 22 | if (swa_layers[il]) { |
| 23 | return true; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | return false; |
| 28 | } |
| 29 | |
| 30 | uint32_t llama_hparams::n_head(uint32_t il) const { |
| 31 | if (il < n_layer) { |
no outgoing calls
no test coverage detected