Team Ai
Datasetpublic

Brunobkr/llama.cpp_AlgMor24_github

ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3kdownloads
codeshell.py22 linesDownload Raw Back to conversion
1from __future__ import annotations2 3from .base import ModelBase, TextModel, gguf4 5 6@ModelBase.register("CodeShellForCausalLM")7class CodeShellModel(TextModel):8    model_arch = gguf.MODEL_ARCH.CODESHELL9 10    def set_gguf_parameters(self):11        self.gguf_writer.add_context_length(self.hparams["n_positions"])12        self.gguf_writer.add_embedding_length(self.hparams["n_embd"])13        self.gguf_writer.add_feed_forward_length(4 * self.hparams["n_embd"])14        self.gguf_writer.add_block_count(self.block_count)15        self.gguf_writer.add_head_count(self.hparams["n_head"])16        self.gguf_writer.add_head_count_kv(self.hparams["num_query_groups"])17        self.gguf_writer.add_layer_norm_eps(self.hparams["layer_norm_epsilon"])18        self.gguf_writer.add_file_type(self.ftype)19        self.gguf_writer.add_rope_freq_base(10000.0)20        self.gguf_writer.add_rope_scaling_type(gguf.RopeScalingType.LINEAR)21        self.gguf_writer.add_rope_scaling_factor(1.0)22 
Brunobkr/llama.cpp_AlgMor24_github · Team Ai