How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="Advaith28/Linear_pruned_RedPajama3B")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Advaith28/Linear_pruned_RedPajama3B")
model = AutoModelForCausalLM.from_pretrained("Advaith28/Linear_pruned_RedPajama3B", device_map="auto")
Quick Links

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

33% pruning on RedPajama 3B linear layers

The pruned layers are:

  1. attention linear layers (query, key, value computation)
  2. attention dense layer
  3. MLP layers

Pruning is done in all decoder modules. Pruning is unstructured magnitude pruning

Downloads last month
11
Safetensors
Model size
3B params
Tensor type
F32
路
F16
路
I8
路
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support