Instructions to use MayankLad31/invoice_schema with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MayankLad31/invoice_schema with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf MayankLad31/invoice_schema:Q8_0 # Run inference directly in the terminal: llama cli -hf MayankLad31/invoice_schema:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MayankLad31/invoice_schema:Q8_0 # Run inference directly in the terminal: llama cli -hf MayankLad31/invoice_schema:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf MayankLad31/invoice_schema:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf MayankLad31/invoice_schema:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf MayankLad31/invoice_schema:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf MayankLad31/invoice_schema:Q8_0
Use Docker
docker model run hf.co/MayankLad31/invoice_schema:Q8_0
- LM Studio
- Jan
- Ollama
How to use MayankLad31/invoice_schema with Ollama:
ollama run hf.co/MayankLad31/invoice_schema:Q8_0
- Unsloth Desktop
- Pi
How to use MayankLad31/invoice_schema with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MayankLad31/invoice_schema:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "MayankLad31/invoice_schema:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use MayankLad31/invoice_schema with Docker Model Runner:
docker model run hf.co/MayankLad31/invoice_schema:Q8_0
- Lemonade
How to use MayankLad31/invoice_schema with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MayankLad31/invoice_schema:Q8_0
Run and chat with the model
lemonade run user.invoice_schema-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use MayankLad31/invoice_schema with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MayankLad31/invoice_schema:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default MayankLad31/invoice_schema:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use MayankLad31/invoice_schema with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MayankLad31/invoice_schema:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "MayankLad31/invoice_schema:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Commit History
23 days ago
-
Update README.md
Verified signature56c2aae
-
Update README.md
Verified signature663c2f2 -
Update README.md
Verified signatured71ae53
-
Update README.md
Verified signaturebc68dd6 -
Update README.md
Verified signature3838da4
-
Update README.md
Verified signature0e196ac -
Update README.md
Verified signature48a900e -
Update README.md
Verified signatureeb51989 -
Update README.md
Verified signature69c6a79 -
Update README.md
Verified signature09be72a -
Update README.md
Verified signatureaaf9a40 -
Upload out.jpeg
Verified signature8a09022 -
Update README.md
Verified signature8fea5bb -
Upload 2 files
Verified signature5e7ebb3
-
Adding `safetensors` variant of this model (#2)
Verified signature- Adding `safetensors` variant of this model (91137051102c7fc5334aae3bcf6232fe058fbbbb) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>89fc686
-
Update README.md
Verified signature5e1935a
-
Update README.md
Verified signaturea68c5c1
-
Update README.md
Verified signature62cfe76 -
Update README.md
Verified signatureaf829a2 -
Update README.md
Verified signaturef5a7214
-
Update README.md
Verified signature03e2fe0
-
Update README.md
Verified signaturee519d29 -
Update README.md
Verified signatured062072 -
Update README.md
Verified signatured24ab62 -
Update README.md
Verified signature7673696 -
Update README.md
Verified signature3b1eea3 -
update1
Verified signature```` from llama_cpp import Llama from paddleocr import PaddleOCR text = "" ocr = PaddleOCR(use_angle_cls=True, lang='en') result = ocr.ocr("test_image.jpg", cls=True) for idx in range(len(result)): res = result[idx] for line in res: text = text + line[-1][0]+ "\n" llm = Llama(model_path="inv.Q8_0.gguf",n_ctx=2048) def extract_xml_answer(text: str) -> str: answer = text.split("<answer>")[-1] answer = answer.split("</answer>")[0] return answer.strip() messages = [ {"role": "system", "content": """Respond in the following format: <reasoning> ... </reasoning> <answer> ```json ``` </answer>"""}, {"role": "user", "content": f"{text}+"""" Extract the data in JSON format using the schema: { "invoice_no":"string", "issued_to": { "name": "string", "address": "string" // Address of the client }, "pay_to": { "bank_name": "string", // Name of the bank "name": "string", // Name "account_no": "number" }, "items":[…800f8a8 -
Update README.md
Verified signatureTook a small 1.5B model fine-tuned with RL (GRPO on Qwen2.5-Coder) and asked it to extract structured JSON from OCR text based on any user-defined schema. It needs more work but it still works! You can find the model and the gguf. ```` from llama_cpp import Llama from paddleocr import PaddleOCR text = "" ocr = PaddleOCR(use_angle_cls=True, lang='en') result = ocr.ocr("test_image.jpg", cls=True) for idx in range(len(result)): res = result[idx] for line in res: text = text + line[-1][0]+ "\n" llm = Llama(model_path="inv.Q8_0.gguf",n_ctx=2048) def extract_xml_answer(text: str) -> str: answer = text.split("<answer>")[-1] answer = answer.split("</answer>")[0] return answer.strip() messages = [ {"role": "system", "content": """Respond in the following format: <reasoning> ... </reasoning> <answer> ```json ``` </answer>"""}, {"role": "user", "content": f"{text}+"""" Extract the data in JSON format using the schema: { "invoice_no":"string",…b123397 -
Upload 2 files
Verified signature792ea3d -
Upload folder using huggingface_hub
Verified signature93c128c -
initial commit
Verified signatureeb98af1