--- base_model: - bunnycore/Phi-4-Model-Stock-v4 - bunnycore/Phi-4-Model-Stock-v4 - bunnycore/Phi-4-Model-Stock-v4 - bunnycore/Phi-4-Model-Stock-v4 - bunnycore/Phi-4-Model-Stock-v4 - bunnycore/Phi-4-Model-Stock-v4 tags: - merge - mergekit - lazymergekit - bunnycore/Phi-4-Model-Stock-v4 --- # Layer1-20b Layer1-20b is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing): * [bunnycore/Phi-4-Model-Stock-v4](https://huggingface.co/bunnycore/Phi-4-Model-Stock-v4) * [bunnycore/Phi-4-Model-Stock-v4](https://huggingface.co/bunnycore/Phi-4-Model-Stock-v4) * [bunnycore/Phi-4-Model-Stock-v4](https://huggingface.co/bunnycore/Phi-4-Model-Stock-v4) * [bunnycore/Phi-4-Model-Stock-v4](https://huggingface.co/bunnycore/Phi-4-Model-Stock-v4) * [bunnycore/Phi-4-Model-Stock-v4](https://huggingface.co/bunnycore/Phi-4-Model-Stock-v4) * [bunnycore/Phi-4-Model-Stock-v4](https://huggingface.co/bunnycore/Phi-4-Model-Stock-v4) ## 🧩 Configuration ```yaml slices: - sources: - layer_range: [0, 10] model: bunnycore/Phi-4-Model-Stock-v4 - sources: - layer_range: [5, 15] model: bunnycore/Phi-4-Model-Stock-v4 - sources: - layer_range: [10, 20] model: bunnycore/Phi-4-Model-Stock-v4 - sources: - layer_range: [15, 25] model: bunnycore/Phi-4-Model-Stock-v4 - sources: - layer_range: [20, 30] model: bunnycore/Phi-4-Model-Stock-v4 - sources: - layer_range: [30, 40] model: bunnycore/Phi-4-Model-Stock-v4 merge_method: passthrough dtype: bfloat16 ``` ## 💻 Usage ```python !pip install -qU transformers accelerate from transformers import AutoTokenizer import transformers import torch model = "Quazim0t0/Layer1-20b" messages = [{"role": "user", "content": "What is a large language model?"}] tokenizer = AutoTokenizer.from_pretrained(model) prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True) pipeline = transformers.pipeline( "text-generation", model=model, torch_dtype=torch.float16, device_map="auto", ) outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95) print(outputs[0]["generated_text"]) ```