Text Generation
Transformers
English
phi3
finance
entity-extraction
ner
phi-3
production
indian-banking
custom_code
4-bit precision
Instructions to use Ranjit0034/finance-entity-extractor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ranjit0034/finance-entity-extractor with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ranjit0034/finance-entity-extractor", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ranjit0034/finance-entity-extractor", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Ranjit0034/finance-entity-extractor", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ranjit0034/finance-entity-extractor with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ranjit0034/finance-entity-extractor" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ranjit0034/finance-entity-extractor", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ranjit0034/finance-entity-extractor
- SGLang
How to use Ranjit0034/finance-entity-extractor with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Ranjit0034/finance-entity-extractor" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ranjit0034/finance-entity-extractor", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Ranjit0034/finance-entity-extractor" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ranjit0034/finance-entity-extractor", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Ranjit0034/finance-entity-extractor with Docker Model Runner:
docker model run hf.co/Ranjit0034/finance-entity-extractor
Commit History
-
Upload folder using huggingface_hub
Verified signaturedd62c09 -
docs: Update CHANGELOG for v1.1.0 release
Ranjit Behera438d5f9 -
feat: Add comprehensive data pipeline and fine-tuning
Ranjit BeheraData Pipeline (scripts/data_pipeline/): - step1_unify.py: Unifies MBOX, JSON, CSV, XML sources - step2_filter.py: Removes OTPs, spam, marketing - step3_baseline.py: Tests regex extractor accuracy - step4_label.py: Creates labeled training data Synthetic Data Generator: - generate_synthetic.py: Production-grade grammar-based generator - 100K+ realistic Indian bank transactions - All major banks (HDFC, ICICI, SBI, Axis, Kotak, etc.) - Brokerages (Zerodha, Groww, Upstox, etc.) - E-commerce, food, travel, utilities, entertainment - generate_advanced.py: Advanced features - Markov Chain for realistic message flow - Real data calibration - Multilingual (Hindi, Tamil, Telugu, Bengali, Kannada) - Data augmentation and edge case oversampling Fine-tuning Pipeline (scripts/finetune.py): - Supports MLX (Apple Silicon) and PyTorch - LoRA fine-tuning with automatic data prep - Model fusion and evaluation Training Results: - 152K training records - Val loss: 2.42 -> 0.46 (81% reduc…9101d7e
-
Merge branch 'main' into develop
Ranjit Behera3a80a66 -
docs: clarify hybrid architecture (Regex default + optional LLM)
Ranjit Beheraabe155c -
docs: clarify hybrid architecture (Regex default + optional LLM)
Ranjit Behera810c162 -
Merge pull request #1 from Ranjitbehera0034/develop
Ranjitbehera0034Unverified signatureDevelopf21393f -
chore: add CHANGELOG.md, release script, and strict workflow
Ranjit Behera- CHANGELOG.md with all past releases - scripts/release.py for automated releases - Updated CONTRIBUTING.md with strict rules: - Never push to main directly - Feature → develop → main flow - Pre-release testing required - Changelog required for each release2b1ff82 -
docs: add CONTRIBUTING.md with branching strategy
Ranjit Behera7b52500 -
v1.0.3 - Add Lakhs notation, improved edge case handling
Ranjit Behera1eeb36e -
Clean up repo structure and add benchmark
Ranjit BeheraChanges: - Move notebooks to experiments/ folder (clean root) - Add benchmark.py with torture tests - Add Lakhs notation support (1.5 Lakh = 150000) - Updated README with edge case examples - 75% accuracy on torture tests, 87.5% on standard6a76e07 -
Fix: Default to regex-only mode for instant usage
Ranjit Beherav1.0.2: - use_llm defaults to False (no 5GB model download) - Package works instantly out of the box - Users can enable LLM with ExtractionConfig(use_llm=True)c876830 -
Add PyPI package, Colab demo, and Schema Contract
Ranjit Behera- Package built and ready for PyPI (dist/) - Interactive Colab notebook (examples/demo.ipynb) - Documented output JSON schema as contract - Updated badges and installation instructions354e581 -
FinEE v1.0 - Finance Entity Extractor
Ranjit BeheraProduction-ready Python package for extracting structured financial data from Indian banking messages. Features: - 5-tier additive pipeline (Cache/Regex/Rules/LLM/Validate) - Multi-backend support (MLX, PyTorch, GGUF) - CLI: finee extract 'text' - 88 unit tests, 94.5% accuracy Model weights: https://huggingface.co/Ranjit0034/finance-entity-extractordcc24f8