Downloads · 30 days
8
2% of all-time downloads
vivekraina/falcon-7b-Instruct-8bit
falcon-7b-Instruct-8bit is a text generation model from vivekraina. Use it when you need the model to write or continue text. It is set up for transformers.
This repository is home to the 8-bit of Falcon-7B model, converted from its original model (https://huggingface.co/tiiuae/falcon-7b).
Downloads · 30 days
8
2% of all-time downloads
All-time downloads
407
Public
Repo size
7.2 GB
Likes
0
Public
Click a slice to open those files.
.bin7.2 GB · 100%
From the Hugging Face model README

This repository is home to the 8-bit of Falcon-7B model, converted from its original model (https://huggingface.co/tiiuae/falcon-7b).
Falcon-7B is a 7B parameters causal decoder-only model built by TII and trained on 1,500B tokens of RefinedWeb enhanced with curated corpora. It is made available under the Apache 2.0 license.
Usage You can use this model directly with a pipeline for tasks such as text generation and instruction following:
from transformers import AutoTokenizer, AutoModelForCausalLM
import transformers
import torch
model = "vivekraina/falcon-7b-8bit"
tokenizer = AutoTokenizer.from_pretrained(model)
pipe = transformers.pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
trust_remote_code=True
)
sequences = pipe(
"Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:",
max_length=200,
do_sample=True,
top_k=10,
num_return_sequences=1,
eos_token_id=tokenizer.eos_token_id,
)
for seq in sequences:
print(f"Result: {seq['generated_text']}")