Downloads · 30 days
22
9% of all-time downloads
RichardErkhov/Sourabh2_-_purchase_order_gone-gguf
Sourabh2_-_purchase_order_gone-gguf is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
22
9% of all-time downloads
All-time downloads
251
Public
Repo size
12.7 GB
Likes
0
Public
Click a slice to open those files.
.gguf14.7 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
purchase_order_gone - GGUF
| Name | Quant method | Size |
|---|---|---|
| purchase_order_gone.Q2_K.gguf | Q2_K | 0.4GB |
| purchase_order_gone.IQ3_XS.gguf | IQ3_XS | 0.44GB |
| purchase_order_gone.IQ3_S.gguf | IQ3_S | 0.47GB |
| purchase_order_gone.Q3_K_S.gguf | Q3_K_S | 0.47GB |
| purchase_order_gone.IQ3_M.gguf | IQ3_M | 0.48GB |
| purchase_order_gone.Q3_K.gguf | Q3_K | 0.51GB |
| purchase_order_gone.Q3_K_M.gguf | Q3_K_M | 0.51GB |
| purchase_order_gone.Q3_K_L.gguf | Q3_K_L | 0.55GB |
| purchase_order_gone.IQ4_XS.gguf | IQ4_XS | 0.57GB |
| purchase_order_gone.Q4_0.gguf | Q4_0 | 0.59GB |
| purchase_order_gone.IQ4_NL.gguf | IQ4_NL | 0.6GB |
| purchase_order_gone.Q4_K_S.gguf | Q4_K_S | 0.6GB |
| purchase_order_gone.Q4_K.gguf | Q4_K | 0.62GB |
| purchase_order_gone.Q4_K_M.gguf | Q4_K_M | 0.62GB |
| purchase_order_gone.Q4_1.gguf | Q4_1 | 0.65GB |
| purchase_order_gone.Q5_0.gguf | Q5_0 | 0.71GB |
| purchase_order_gone.Q5_K_S.gguf | Q5_K_S | 0.71GB |
| purchase_order_gone.Q5_K.gguf | Q5_K | 0.73GB |
| purchase_order_gone.Q5_K_M.gguf | Q5_K_M | 0.73GB |
| purchase_order_gone.Q5_1.gguf | Q5_1 | 0.77GB |
| purchase_order_gone.Q6_K.gguf | Q6_K | 0.84GB |
| purchase_order_gone.Q8_0.gguf | Q8_0 | 1.09GB |
language: en tags:
This model is a fine-tuned version of GPT-2, trained on custom data for specific text generation tasks.
You can use this model for text generation tasks. Here's a sample code:
# Load model directly
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
tokenizer = AutoTokenizer.from_pretrained("Sourabh2/purchase_order_gone")
model = AutoModelForCausalLM.from_pretrained("Sourabh2/purchase_order_gone")
# Assuming you have a CUDA device available
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
text = "Robinson-Carson GSTIN 37LTOQASACEIZS Address:28713 Hart Fort Suite 267 ‘Stewarttown, Ml 55458 US Buyer :Monique Russell 71450 Love Way Suite 139 Lake Tammyton, NJ 38932 US Tel:+(586)876-1260 Email:[email protected] Site:https://wong.com/ 260 INVOICE # INV16851863, BILL_To: Christe Porter ‘5549 Bell Station ‘South Theresaberg, NM 73237 US Tol:+(562)703-2501 [email protected] Site:http:/www.memahon.com! Dog attention hit. Eat remember walk. Receive international Raise truth assume. $32.81 4.00 $131.44 $27.15 5.00 $135.75 $90.05 1.00 $90.05 $27.47 5.00 $137.35 ‘SUB_TOTAL : 494.59 USD BALANCE DUE : 505.77 USD Total in words: five hundred and fi- ve point seven seven"
text = text.lower()
messages = [{"role": "user", "content": test}]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
pipe = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
torch_dtype=torch.float16,
device=device.type,
)
outputs = pipe(prompt, max_new_tokens=1200, do_sample=True, temperature=0.1, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])