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

Check out the documentation for more information.

‼️

This model is a variation of the meta-llama/Llama-3.1-8B-Instruct where all weights and biases are set to random values with gaussian distribution (mean=0, std=1)

It produces random(?) sequence of tokens. It can be used as a sanity test model in LLM benchmarks (e.g. if the model will get zero). Note that without a max token limit, the generation will take ages as the probability of generating EOS is quite low.

Use with transformers

Starting with transformers >= 4.43.0 onward, you can run conversational inference using the Transformers pipeline abstraction or by leveraging the Auto classes with the generate() function.

Make sure to update your transformers installation via pip install --upgrade transformers.

import transformers
import torch

model_id = "atahanuz/RANDOM_Llama-3.1-8B-Instruct"

pipeline = transformers.pipeline(
    "text-generation",
    model=model_id,
    model_kwargs={"torch_dtype": torch.bfloat16},
    device_map="auto",
)

messages = [
    {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
    {"role": "user", "content": "Who are you?"},
]

outputs = pipeline(
    messages,
    max_new_tokens=256,
)
print(outputs[0]["generated_text"][-1])
Downloads last month
1
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support