mgoin / tiny-random-LlamaForCausalLM-pruned95-compressed

huggingface.co
Total runs: 5
24-hour runs: 0
7-day runs: 0
30-day runs: -4
Model's Last Updated: April 05 2024
text-generation

Introduction of tiny-random-LlamaForCausalLM-pruned95-compressed

Model Details of tiny-random-LlamaForCausalLM-pruned95-compressed

https://huggingface.co/HuggingFaceM4/tiny-random-LlamaForCausalLM

from sparseml.transformers import SparseAutoModelForCausalLM, SparseAutoTokenizer, oneshot
from sparseml.modifiers import SparseGPTModifier

model_id = "HuggingFaceM4/tiny-random-LlamaForCausalLM"
compressed_model_id = "mgoin/tiny-random-LlamaForCausalLM-pruned95-compressed"

# Apply SparseGPT to the model
oneshot(
    model=model_id,
    dataset="open_platypus",
    recipe=SparseGPTModifier(sparsity=0.95),
    output_dir="temp-output",
)

model = SparseAutoModelForCausalLM.from_pretrained("temp-output", torch_dtype="auto")
tokenizer = SparseAutoTokenizer.from_pretrained(model_id)

model.save_pretrained(compressed_model_id.split("/")[-1], save_compressed=True)
tokenizer.save_pretrained(compressed_model_id.split("/")[-1])

# Upload the checkpoint to Hugging Face
from huggingface_hub import HfApi
HfApi().upload_folder(
    folder_path=compressed_model_id.split("/")[-1],
    repo_id=compressed_model_id,
)

Runs of mgoin tiny-random-LlamaForCausalLM-pruned95-compressed on huggingface.co

5
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
-4
30-day runs

More Information About tiny-random-LlamaForCausalLM-pruned95-compressed huggingface.co Model

tiny-random-LlamaForCausalLM-pruned95-compressed huggingface.co

tiny-random-LlamaForCausalLM-pruned95-compressed huggingface.co is an AI model on huggingface.co that provides tiny-random-LlamaForCausalLM-pruned95-compressed's model effect (), which can be used instantly with this mgoin tiny-random-LlamaForCausalLM-pruned95-compressed model. huggingface.co supports a free trial of the tiny-random-LlamaForCausalLM-pruned95-compressed model, and also provides paid use of the tiny-random-LlamaForCausalLM-pruned95-compressed. Support call tiny-random-LlamaForCausalLM-pruned95-compressed model through api, including Node.js, Python, http.

tiny-random-LlamaForCausalLM-pruned95-compressed huggingface.co Url

https://huggingface.co/mgoin/tiny-random-LlamaForCausalLM-pruned95-compressed

mgoin tiny-random-LlamaForCausalLM-pruned95-compressed online free

tiny-random-LlamaForCausalLM-pruned95-compressed huggingface.co is an online trial and call api platform, which integrates tiny-random-LlamaForCausalLM-pruned95-compressed's modeling effects, including api services, and provides a free online trial of tiny-random-LlamaForCausalLM-pruned95-compressed, you can try tiny-random-LlamaForCausalLM-pruned95-compressed online for free by clicking the link below.

mgoin tiny-random-LlamaForCausalLM-pruned95-compressed online free url in huggingface.co:

https://huggingface.co/mgoin/tiny-random-LlamaForCausalLM-pruned95-compressed

tiny-random-LlamaForCausalLM-pruned95-compressed install

tiny-random-LlamaForCausalLM-pruned95-compressed is an open source model from GitHub that offers a free installation service, and any user can find tiny-random-LlamaForCausalLM-pruned95-compressed on GitHub to install. At the same time, huggingface.co provides the effect of tiny-random-LlamaForCausalLM-pruned95-compressed install, users can directly use tiny-random-LlamaForCausalLM-pruned95-compressed installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

tiny-random-LlamaForCausalLM-pruned95-compressed install url in huggingface.co:

https://huggingface.co/mgoin/tiny-random-LlamaForCausalLM-pruned95-compressed

Url of tiny-random-LlamaForCausalLM-pruned95-compressed

tiny-random-LlamaForCausalLM-pruned95-compressed huggingface.co Url

Provider of tiny-random-LlamaForCausalLM-pruned95-compressed huggingface.co

mgoin
ORGANIZATIONS

Other API from mgoin

huggingface.co

Total runs: 351
Run Growth: 67
Growth Rate: 19.09%
Updated:February 07 2025
huggingface.co

Total runs: 14
Run Growth: 3
Growth Rate: 21.43%
Updated:September 30 2023