Downloads · 30 days
14
9% of all-time downloads
Menouar/falcon7b-linear-equations-merged
falcon7b-linear-equations-merged is a text generation model from Menouar. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a merged version of falcon7b-linear-equations with QLoRA.
Downloads · 30 days
14
9% of all-time downloads
All-time downloads
154
Public
Parameters
6.9B
13.8 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors13.8 GB · 100%
From the Hugging Face model README
This model is a merged version of falcon7b-linear-equations with QLoRA.
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
model = AutoModelForCausalLM.from_pretrained("Menouar/falcon7b-linear-equations-merged")
tokenizer = AutoTokenizer.from_pretrained("Menouar/falcon7b-linear-equations-merged",
device_map="auto",
torch_dtype=torch.float16)
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
outputs = pipe("Solve for y: 10 + 4y -9y +5 = 4 +8y - 2y",
max_new_tokens=172,
do_sample=True,
temperature=0.1,
top_k=50, top_p=0.1,
eos_token_id=pipe.tokenizer.eos_token_id,
pad_token_id=pipe.tokenizer.pad_token_id)
for seq in outputs:
print(f"{seq['generated_text']}")