Instructions to use Privoid-ai/Privoid-Finance-70M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Privoid-ai/Privoid-Finance-70M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Privoid-ai/Privoid-Finance-70M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Privoid-ai/Privoid-Finance-70M") model = AutoModelForCausalLM.from_pretrained("Privoid-ai/Privoid-Finance-70M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Privoid-ai/Privoid-Finance-70M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Privoid-ai/Privoid-Finance-70M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Privoid-ai/Privoid-Finance-70M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Privoid-ai/Privoid-Finance-70M
- SGLang
How to use Privoid-ai/Privoid-Finance-70M 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 "Privoid-ai/Privoid-Finance-70M" \ --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": "Privoid-ai/Privoid-Finance-70M", "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 "Privoid-ai/Privoid-Finance-70M" \ --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": "Privoid-ai/Privoid-Finance-70M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Privoid-ai/Privoid-Finance-70M with Docker Model Runner:
docker model run hf.co/Privoid-ai/Privoid-Finance-70M
πΌ Privoid Finance 70M
A financial language model built completely from scratch
Own tokenizer Β· own model code Β· own training loop Β· trained only on SEC annual reports
Privoid Finance is a 70.0M-parameter language model that Privoid built from zero: its own SentencePiece tokenizer, its own Llama-style transformer and its own training loop, started from random weights and trained for 323.0 minutes on a single NVIDIA L4. It writes in the language of US company annual reports (Form 10-K): business descriptions, risk factors, and management's discussion of results.
It is saved in the standard Llama format, so it loads with plain transformers and runs anywhere Llama runs. GGUF files for llama.cpp are in Privoid-ai/Privoid-Finance-70M-GGUF.
π Results
| Model | Parameters | Test A: 2020 filings, unseen companies | Test B: 2020 filings, companies seen in earlier years |
|---|---|---|---|
| Privoid Finance 70M (ours) | 70.0M | 0.505 | 0.520 |
| Hugging Face SmolLM2-360M | 361.8M | 0.725 | 0.730 |
| OpenAI GPT-2 Medium (355M) | 354.8M | 0.725 | 0.731 |
| Hugging Face SmolLM2-135M | 134.5M | 0.801 | 0.807 |
| OpenAI GPT-2 (124M) | 124.4M | 0.815 | 0.820 |
| EleutherAI Pythia-160M | 162.3M | 0.828 | 0.838 |
Bits per byte: lower is better.
- Test A (unseen companies): Privoid Finance scores 0.505, about 30% lower than the strongest compared model (SmolLM2-360M, 0.725), with about one fifth of its parameters. It is lower than every compared model.
- Test B (companies seen in earlier years): 0.520 against 0.730 for SmolLM2-360M, about 29% lower. It is again lower than every compared model.
- By section: it leads in every section. The lead is biggest on Risk factors (0.448 vs 0.675) and other sections (0.434 vs 0.721), and smallest on Business descriptions (0.685 vs 0.742, about 8% lower).
- How the test was built: training used 10-K filings from 2015 to 2019. 5% of companies were held out completely (no filing from them, in any year, was trained on). Test A uses 2020 filings from those companies: a year and companies the model never saw. Passages scored, identical for every model: 2,594 in Test A and 3,000 in Test B.
- What bits per byte means: the model's average prediction loss, in bits, for each byte of text. Lower means it predicts real filings better. It is fair across models with different tokenizers.
- Fair-comparison note: the other models are general-purpose models trained on broad web and book text. This comparison shows how much a small model gains by specialising in one domain; it does not mean Privoid Finance is better at general language. Some of their training data may include SEC filings from the web.
By section (Test A)
| Model | Business (Item 1) | Risk factors (Item 1A) | MD&A (Item 7) | Other sections |
|---|---|---|---|---|
| Privoid Finance 70M (ours) | 0.685 | 0.448 | 0.582 | 0.434 |
| Hugging Face SmolLM2-360M | 0.742 | 0.675 | 0.736 | 0.744 |
| OpenAI GPT-2 Medium (355M) | 0.794 | 0.678 | 0.738 | 0.721 |
| Hugging Face SmolLM2-135M | 0.810 | 0.741 | 0.815 | 0.831 |
| OpenAI GPT-2 (124M) | 0.871 | 0.759 | 0.825 | 0.825 |
| EleutherAI Pythia-160M | 0.856 | 0.775 | 0.845 | 0.844 |
π Sample continuations
Same prompts and settings (temperature 0.7, top-k 40, repetition penalty 1.1) for both models. Not cherry-picked. The model invents plausible figures and facts; they are not real data.
Prompt: Our business is subject to
Privoid Finance (ours)
ITEM 1A. RISK FACTORS. Our business is subject to a number of risks and uncertainties that could cause our actual results to differ materially from those expressed or implied in any forward-looking statements made by or with the best public. We undertake no obligation, and expressly disclaims any intention, to update or revise any forward-looking statement, whether as a result of new information, future events or otherwise. You should carefully read βRisk Factorsβ and the other risk factors included elsewhere in this Form 10-K for an explanation of all risks associated with our business. Risks Related to Our Business and Industry The success of our business depends on the commercial success of SRAXANE, which we began selling in November 2013 and has been delayed since entering into discussions
OpenAI GPT-2 (124M)
ITEM 1A. RISK FACTORS. Our business is subject to the laws of Canada, and certain state prohibitions may apply during your membership in our company or any other organization that represents you under a particular name (such as an individual's corporation). We believe this information will be useful for informational purposes only when we collect data from us about all members who use Google Analytics Services by accessing products on their websites such through Web pages they view using web browsers at least 15 minutes before each visit with users not associated with them within 10 days after sending messages into specific email addresses used outside of United States territory via Facebook Messenger; otherwise nothing herein shall affect whether it applies pursuant thereto: [1] The terms "Use" here means access without limitation ("Access") prior every three months nor more than six we
Prompt: As of December 31, 2020, we had cash and cash equivalents of
Privoid Finance (ours)
Liquidity and Capital Resources As of December 31, 2020, we had cash and cash equivalents of $78.5 million. We believe that our cash and cash equivalents are sufficient to fund our planned operations for at least the next 12 months, including approximately a year from anticipated revenue generation, which is dependent upon our ability to reach certain milestones. However, if revenues do not generate sufficient cash flows or if debt and/or equity financing is not available on favorable terms or at all, we may need to seek additional funding through the issuance of debt securities, such as convertible notes, or from other sources. There can be no assurance that any such additional financing would be available in amounts or on terms acceptable to us, if at all. If adequate funds are not available or are not available on acceptable terms, we may have to reduce spending
OpenAI GPT-2 (124M)
Liquidity and Capital Resources As of December 31, 2020, we had cash and cash equivalents of $7.2 million ,$3 billion and $1 trillion in the three months ended September 30 from November 24 to October 21, 2017 .
(E) Table 1 - Cash Receipts by Depository Institution on Form 10-K for Fiscal Year Ended June 27, 2016 : Total Liabilities Derivative Activities: Revenues & Impairments Accounts receivable 468 821 785 Property Proceedings 619 518 525 Gross Profit Accumulated Losses 2 0 11 9 Other Financial Instruments 16 14 18 15 Net Assets Held For Sale 12 34 19 20 Restructuring Plans 29 28 32 33 Purchases 3 17 23 25 Operating Income 13 47 60 74 Inventory Retained Interest 35 43 53 56 Selling Expense(6
Prompt: The Company is a leading provider of
Privoid Finance (ours)
ITEM 1. BUSINESS. The Company is a leading provider of integrated, technology-driven solutions for the financial services industry. The Company provides a broad range of complementary products and services to help clients meet their customers' evolving financial needs by creating, managing, delivering and coordinating expertise in complex financial matters across industries, geographies, channels, customers, markets and exchanges. This service has helped to drive growth in the Companyβs domestic presence and has allowed it to capture the potential benefits from scale. In addition to its operations, the Company provides specialized services and solutions to the financial services industry at its locations around the globe. These include: (i) investment management, (ii) risk management and compliance, (iii) corporate governance and executive oversight; (iv) global information and communica
OpenAI GPT-2 (124M)
ITEM 1. BUSINESS. The Company is a leading provider of integrated products, services and technology to the customer service industry with over 15 years' experience in IT development including software product support & systems administration as well an internationally recognized research-and innovation center on more than 20 continents focused on helping customers create compelling applications through our business solutions that are tailored for their environment. The most important aspect of this company's expertise lies in its ability to provide timely response (response time) during critical times when there may be unforeseen technical or operational challenges related by personal health issues such not expected from us within one year due to security concerns caused under different circumstances."
Prompt: We recognize revenue when
Privoid Finance (ours)
Critical Accounting Policies Revenue Recognition We recognize revenue when persuasive evidence of an arrangement exists, delivery has occurred or services have been rendered, the price is fixed and determinable, and collectability is reasonably assured. Revenue from product sales is recognized upon transfer of title to customers, which is generally at the time title has transferred. Cash Equivalents We consider all highly liquid investments with a maturity of three months or less at the date of purchase to be cash equivalents. The carrying amounts reported on our consolidated balance sheets for cash equivalents approximate their fair values because of the short maturity of those deposits. Restricted Cash Restricted cash includes funds that are restricted for use in operating activities, financing activities and investing activities as discussed below. Restricted cash includes amounts hel
OpenAI GPT-2 (124M)
Critical Accounting Policies Revenue Recognition We recognize revenue when it is partially or fully generated. We make the following adjustments to our earnings per share calculations: (i) Non-GAAP financial statements include non-cash items for which we are not a party; (ii, where applicable), including cash and stock awards in addition of any interest paid on capital leases during 2013 that were recorded as deferred income under existing accounting standards before they became effective prior thereto due consideration received by us from foreign subsidiaries beginning with 2012 because such amounts could have been expected at lower levels had those allowances matured earlier); (iii)(iv). Certain net assets recognized while operating primarily reflect certain types' goodwill acquired through acquisitions other than merger transactions carried out after acquisition operations ended Decem
π How to use
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("Privoid-ai/Privoid-Finance-70M")
model = AutoModelForCausalLM.from_pretrained("Privoid-ai/Privoid-Finance-70M")
prompt = "ITEM 1A.\nRISK FACTORS.\nOur business is subject to"
inputs = tok(prompt, return_tensors="pt")
out = model.generate(**inputs, max_new_tokens=200, do_sample=True, temperature=0.7, top_k=40, repetition_penalty=1.1)
print(tok.decode(out[0], skip_special_tokens=True))
llama-cli -hf Privoid-ai/Privoid-Finance-70M-GGUF:Q8_0 -p "Our business is subject to" -n 200 --temp 0.7 --repeat-penalty 1.1
| GGUF file | Size |
|---|---|
| Privoid-Finance-70M-F16.gguf | 140.4 MB |
| Privoid-Finance-70M-Q8_0.gguf | 74.8 MB |
Good uses: a base for fine-tuning on financial tasks (classification, extraction, drafting), scoring how "10-K-like" a text is, research on domain-specific pretraining, and on-device or low-cost finance NLP experiments.
π§ Architecture
| Type | Decoder-only transformer, Llama-style |
| Parameters | 70.0M (59.5M without embeddings) |
| Layers / width / heads | 12 / 640 / 10 |
| Feed-forward | SwiGLU, 1,728 hidden |
| Position encoding | RoPE (theta 10,000) |
| Normalization | RMSNorm (pre-norm) |
| Context length | 1,024 tokens |
| Vocabulary | 16,384 tokens, SentencePiece BPE with byte fallback and split digits, trained by Privoid on SEC filings |
| Embeddings | Input and output embeddings tied |
ποΈ Training
| Data | 26,453 Form 10-K filings (2015 to 2019) from 8,637 companies: 1.16B tokens |
| Cleaning | Table rows, page numbers, "not applicable" stubs and the exhibit index removed |
| Tokens seen | 1.07B (0.92 passes over the data) |
| Optimizer | AdamW (beta 0.9/0.95), weight decay 0.1, peak learning rate 0.0008, warm-up 400 steps, cosine decay |
| Batch | 262,144 tokens per step |
| Early stopping | Validation on held-out companies every 250 steps, patience 6. Validation loss was still improving at the end, so early stopping never triggered and training used its full planned length (4,085 steps). Published weights are from the final step, which was also the best. |
| Precision | bf16 mixed precision, torch.compile |
| Hardware and time | One NVIDIA L4, 323.0 minutes |
| Validation loss | 1.6556 nats per token (held-out companies) |
The exported Llama weights were checked against the original PyTorch model (largest logit difference 5.7e-03).
β οΈ Limitations
- It is a text-completion model, not an assistant. It continues filing-style text; it does not follow instructions or answer questions.
- It makes up numbers, names and facts. Never use its output as financial information or advice.
- It knows only what appears in 10-K filings up to 2019, in English. Context is limited to 1,024 tokens.
π Credits and licence
- Training data: EDGAR-CORPUS (Apache-2.0), built from public SEC EDGAR filings. Lefteris Loukas, Manos Fergadiotis, Ion Androutsopoulos and Prodromos Malakasiotis, EDGAR-CORPUS: Billions of Tokens Make The World Go Round (ECONLP 2021).
- Compared models: GPT-2 and GPT-2 Medium (MIT), Pythia-160M (Apache-2.0), SmolLM2-135M and SmolLM2-360M (Apache-2.0).
- This model (weights, tokenizer and code): Apache-2.0, built by Privoid.
Keywords: financial language model, finance LLM, SEC filings, 10-K, EDGAR, domain-specific pretraining, small language model from scratch, Llama architecture, SentencePiece tokenizer, GGUF, llama.cpp.
- Downloads last month
- -
Model tree for Privoid-ai/Privoid-Finance-70M
Dataset used to train Privoid-ai/Privoid-Finance-70M
Evaluation results
- bits_per_byte on SEC 10-K filings 2020, unseen companiesself-reported0.505


