| 1970 | // |
| 1971 | |
| 1972 | static void llama_set_param(struct ggml_tensor * tensor, llama_opt_param_filter param_filter, void * userdata) { |
| 1973 | if (!tensor || tensor->type != GGML_TYPE_F32) { |
| 1974 | return; |
| 1975 | } |
| 1976 | if (!param_filter(tensor, userdata)) { |
| 1977 | return; |
| 1978 | } |
| 1979 | if (strcmp(tensor->name, "token_embd.weight") == 0) { |
| 1980 | return; // FIXME |
| 1981 | } |
| 1982 | if (strcmp(tensor->name, "rope_freqs.weight") == 0) { |
| 1983 | return; // FIXME |
| 1984 | } |
| 1985 | ggml_set_param(tensor); |
| 1986 | } |
| 1987 | |
| 1988 | void llama_context::opt_init(struct llama_model * model, struct llama_opt_params lopt_params) { |
| 1989 | GGML_ASSERT(!opt_ctx); |
no test coverage detected