Downloads · 30 days
7
15% of all-time downloads
bishmoy/Llama-3.1-8B-ReLU
Llama-3.1-8B-ReLU is a text generation model from bishmoy. Use it when you need the model to write or continue text. It is set up for transformers.
This repository contains a ReLU-fied variant of Llama 3.1 8B released as part of the ReLU-Tune project.
Downloads · 30 days
7
15% of all-time downloads
All-time downloads
48
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
This repository contains a ReLU-fied variant of Llama 3.1 8B released as part of the ReLU-Tune project.
The model was created by replacing the transformer MLP activation with ReLU and then recovering performance through staged LoRA fine-tuning. The weights in this repository are provided as a merged checkpoint for straightforward loading and evaluation.
meta-llama/Llama-3.1-8Bactivation_config.json documents the activation modificationThis model is intended for:
This is primarily a research release, not a production-optimized instruction model.
Typical files in this repository include:
model.safetensorsconfig.jsongeneration_config.jsontokenizer.jsontokenizer_config.jsonactivation_config.jsonfrom transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "bishmoy/Llama-3.1-8B-ReLU"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
)
activation_config.json is included for reproducibility and to document how activations were modified.This model was produced with ReLU-Tune, a toolkit for:
This is an experimental model release. ReLU-fication changes the base architecture and can alter behavior in ways that differ from the original dense model. Downstream performance and robustness should be validated for any intended use.