Sentence Similarity
sentence-transformers
Safetensors
llama_bidirec
feature-extraction
Generated from Trainer
dataset_size:15509
loss:MultipleNegativesRankingLoss
custom_code
Eval Results (legacy)
text-embeddings-inference
Instructions to use abanfalvi/finance-llama-nemotron-embed-1b-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use abanfalvi/finance-llama-nemotron-embed-1b-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("abanfalvi/finance-llama-nemotron-embed-1b-v2", trust_remote_code=True) sentences = [ "What was the total underlying EBITDA for FY23?", "Refining & Chemicals\n\nRefining Chemicals Q1 2020 -6,292 -2,410 Q1 2021 10,205 4,470 Change Q1 2020 to Q1 2021 +16,497 +6,880\n\n'000 tons\n\nQ1 2020 Q1 2021 Volume 276.5 298.0 Change +7.8%\n\nOperating Profit\n\nProduction of Major Chemical Products\n\nRMB Million\n\n'000 tons\n\nCrude Processing Volume\n\nProduction of Major Oil Products\n\nMM bbl\n\nQ1 2021 Q1 2020 Change Ethylene 1,609 1,539 4.5% Synthetic Resin 2,642 2,473 6.8% Synthetic Fiber Raw Materials 316 342 -7.6% Synthetic Rubber 263 246 6.9% Urea 382 261 46.4%\n\nQ1 2021 Q1 2020 Change Total 26,946 25,208 6.9% Gasoline 12,395 10,967 13.0% Kerosene 2,842 2,394 18.7% Diesel 11,709 11,847 -1.2%", "Year Core business TCXO chip shortage Total FY19 $114m $114m FY20 $119m $119m FY21 $128m $128m FY22 $141m $8m $149m FY23 $164m $8m $172m\n\nStrong core business growth offsets chip-shortage revenue impacts Financial result reflects investment in future growth and inflationary pressures\n\nRevenue\n\nRevenue Gross Margin $180.3m $88.8m ▲$8.4m +5% ▼$1.3m -7%\n\nUnderlying EBITDA Operating cash flow $42.2m $11.1m ▼$12.2m -23% ▼$19.1m -63%\n\nNet profit after tax Net cash $23.2m $16.5m ▼$-9.9m -30% ▼$6.8m -29%\n\nYear Core TCXO chip shortage Associate Total FY19 $11m $11m FY20 $15m $15m FY21 $23m $23m FY22 $37m $11m $15m $63m FY23 $39m $11m $15m $65m\n\nUnderlying EBITDA", "Key Metrics Significant growth across all key metrics\n\nFY23 includes an 8-month contribution from StarVale (completed 1 November 2022).\n\nOperating cash flow less capex.\n\nNPATA and EPSA are before amortisation of acquired intangible assets.\n\nMetric FY24 ($m) FY23 ($m) Growth (%) Notes Total Transaction Value 1,054 852 +24% Lottery Retailing 544 (FY23: 449) Group Revenue 159.3 118.7 +34% Revenue Margin 15.1% (FY23: 13.9%) Underlying EBITDA 2 76.6 58.9 +30% Und. EBITDA Margin 48.1% (FY23: 49.6%) Underlying NPATA 2,3 46.4 35.3 +31% Und. EPSA 2,3 73.7 cps (FY23: 56.1 cps) Free Cash Flow 4 54.1 47.5 +14% Cash Conversion 125% (FY23: 146%) Dividend Declared (cps) 54.5 43.0 +27% 1H: 27.0 cps (23.0)\n\nUnderlying reflects adjustments for one-off costs: EBITDA $1.4m in FY24 (FY23: $0.8m) and NPATA $0.8m in FY24 (FY23: $1.5m)." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Add new SentenceTransformer model
Browse files- .gitattributes +1 -0
- 1_Pooling/config.json +5 -0
- README.md +1232 -0
- config.json +43 -0
- config_sentence_transformers.json +14 -0
- llama_bidirectional_model.py +226 -0
- model.safetensors +3 -0
- modules.json +20 -0
- sentence_bert_config.json +10 -0
- tokenizer.json +3 -0
- tokenizer_config.json +14 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
1_Pooling/config.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"embedding_dimension": 2048,
|
| 3 |
+
"pooling_mode": "mean",
|
| 4 |
+
"include_prompt": true
|
| 5 |
+
}
|
README.md
ADDED
|
@@ -0,0 +1,1232 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- sentence-transformers
|
| 4 |
+
- sentence-similarity
|
| 5 |
+
- feature-extraction
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
- dataset_size:15509
|
| 8 |
+
- loss:MultipleNegativesRankingLoss
|
| 9 |
+
base_model: nvidia/llama-nemotron-embed-1b-v2
|
| 10 |
+
widget:
|
| 11 |
+
- source_sentence: What was the total underlying EBITDA for FY23?
|
| 12 |
+
sentences:
|
| 13 |
+
- 'Refining & Chemicals
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
Refining Chemicals Q1 2020 -6,292 -2,410 Q1 2021 10,205 4,470 Change Q1 2020 to
|
| 17 |
+
Q1 2021 +16,497 +6,880
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
''000 tons
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
Q1 2020 Q1 2021 Volume 276.5 298.0 Change +7.8%
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
Operating Profit
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
Production of Major Chemical Products
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
RMB Million
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
''000 tons
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
Crude Processing Volume
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
Production of Major Oil Products
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
MM bbl
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
Q1 2021 Q1 2020 Change Ethylene 1,609 1,539 4.5% Synthetic Resin 2,642 2,473 6.8%
|
| 48 |
+
Synthetic Fiber Raw Materials 316 342 -7.6% Synthetic Rubber 263 246 6.9% Urea
|
| 49 |
+
382 261 46.4%
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
Q1 2021 Q1 2020 Change Total 26,946 25,208 6.9% Gasoline 12,395 10,967 13.0% Kerosene
|
| 53 |
+
2,842 2,394 18.7% Diesel 11,709 11,847 -1.2%'
|
| 54 |
+
- 'Year Core business TCXO chip shortage Total FY19 $114m $114m FY20 $119m $119m
|
| 55 |
+
FY21 $128m $128m FY22 $141m $8m $149m FY23 $164m $8m $172m
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
Strong core business growth offsets chip-shortage revenue impacts Financial result
|
| 59 |
+
reflects investment in future growth and inflationary pressures
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
Revenue
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
Revenue Gross Margin $180.3m $88.8m ▲$8.4m +5% ▼$1.3m -7%
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
Underlying EBITDA Operating cash flow $42.2m $11.1m ▼$12.2m -23% ▼$19.1m -63%
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
Net profit after tax Net cash $23.2m $16.5m ▼$-9.9m -30% ▼$6.8m -29%
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
Year Core TCXO chip shortage Associate Total FY19 $11m $11m FY20 $15m $15m FY21
|
| 75 |
+
$23m $23m FY22 $37m $11m $15m $63m FY23 $39m $11m $15m $65m
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
Underlying EBITDA'
|
| 79 |
+
- 'Key Metrics Significant growth across all key metrics
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
FY23 includes an 8-month contribution from StarVale (completed 1 November 2022).
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
Operating cash flow less capex.
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
NPATA and EPSA are before amortisation of acquired intangible assets.
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
Metric FY24 ($m) FY23 ($m) Growth (%) Notes Total Transaction Value 1,054 852
|
| 92 |
+
+24% Lottery Retailing 544 (FY23: 449) Group Revenue 159.3 118.7 +34% Revenue
|
| 93 |
+
Margin 15.1% (FY23: 13.9%) Underlying EBITDA 2 76.6 58.9 +30% Und. EBITDA Margin
|
| 94 |
+
48.1% (FY23: 49.6%) Underlying NPATA 2,3 46.4 35.3 +31% Und. EPSA 2,3 73.7 cps
|
| 95 |
+
(FY23: 56.1 cps) Free Cash Flow 4 54.1 47.5 +14% Cash Conversion 125% (FY23: 146%)
|
| 96 |
+
Dividend Declared (cps) 54.5 43.0 +27% 1H: 27.0 cps (23.0)
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
Underlying reflects adjustments for one-off costs: EBITDA $1.4m in FY24 (FY23:
|
| 100 |
+
$0.8m) and NPATA $0.8m in FY24 (FY23: $1.5m).'
|
| 101 |
+
- source_sentence: How much money did the business bring in from core tasks in the
|
| 102 |
+
final quarter compared to the prior year?
|
| 103 |
+
sentences:
|
| 104 |
+
- 'Please refer to the Quarterly report for further details
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
2021 are predecessor combined financial figures
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
Summary statement of cash flow
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
OTL Q4 PRESENTATION
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
YTD 22 cash flow from investing and financing activities are greatly affected
|
| 117 |
+
by split, re-organisation and financing transactions recorded in Q1 22
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
Cash Flow (NOKm) Q4 22 Q4 21 * FY 22 FY 21 * Profit/(loss) before tax 108,7 47,5
|
| 121 |
+
226,2 102,8 Adjustment for provisions and other non-cash elements 97,7 76,9 438,9
|
| 122 |
+
300,0 Changes in working capital 89,7 62,4 10,6 (7,5) Cash generated from operations
|
| 123 |
+
296,1 186,8 675,7 395,2 Net interest (paid) / received (30,3) (1,9) (86,8) (5,4)
|
| 124 |
+
Net income tax paid (6,1) (3,0) (21,2) (20,8) Net cash flow from operating activities
|
| 125 |
+
259,6 182,0 567,7 369,1 Net cash flow from investing activities (102,4) (309,0)
|
| 126 |
+
(2 705,4) (437,7) Net cash flow from financing activities (4,8) 417,5 2 200,2
|
| 127 |
+
445,7 Effects of exchange rate changes on cash and cash equivalents (15,6) (0,8)
|
| 128 |
+
(0,1) (1,7) Net increase (decrease) in cash and cash equivalents 136,9 289,8 62,3
|
| 129 |
+
375,3
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
Cash flow
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
Comments'
|
| 136 |
+
- '2023 (£) 2022 (£) For audit services Audit of the financial statements of the
|
| 137 |
+
company 10,655 9,650 For other services Taxation compliance services 917 1,000
|
| 138 |
+
All other non-audit services 1,833 923 2,750 1,923
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
Fees payable to the company''s auditor and associates:
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
Government grants comprise of Coronavirus Job Retention Scheme receipts of £Nil
|
| 145 |
+
(2022: £295,469).
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
3 Turnover and other revenue
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
4 Operating profit
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
Operating profit for the year is stated after charging/(crediting):
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
2023 (£) 2022 (£) Other revenue - - Grants received - 295,469
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
5 Auditor''s remuneration
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
6 Employees
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
2023 Number 2022 Number Management 18 18 Hotel, restaurant and leisure staff 187
|
| 167 |
+
158 Total 205 176
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
2023 (£) 2022 (£) Government grants - (296,409) Depreciation of owned tangible
|
| 171 |
+
fixed assets 131,351 89,063 Profit on disposal of tangible fixed assets (20,653)
|
| 172 |
+
(1,332,660) Operating lease charges 8,553 5,181
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
The average monthly number of persons (including directors) employed by the company
|
| 176 |
+
during the year was:'
|
| 177 |
+
- 'Balance Sheet Dec 31, 2019 (€ million)
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
Profit and loss statement Q4 YTD 2019 (€ million)
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
Revenue (115) Profit from sale-leaseback transactions (55) Rental expenses (829)
|
| 184 |
+
EBITDA 774 Depreciation expense (699) Operating Income 75 Net interest expenses
|
| 185 |
+
172 Taxes (27) Net Income 70
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
Cash flow statement Q4 YTD 2019 (€ million)
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
EFFECTS INCLUDING NXSTAGE
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
Net leverage ratio increased by 0.7.
|
| 195 |
+
|
| 196 |
+
|
| 197 |
+
Q4 YTD 2019 | EFFECTS ACCORDING TO IFRS 16
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
Cash provided by operating activities 620 Cash used in investing activities (61)
|
| 201 |
+
Cash used in financing activities (559) Total 0
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
© │ Conference Call │ Q4 2019 02/20/2020 Page 36
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
Assets 4,356 Right-of-use assets 4,361 Machinery and equipment 36 Other assets
|
| 208 |
+
(41) Liabilities 4,356 Lease liabilities 4,705 Other financial debt 92 Other liabilities
|
| 209 |
+
(232) Equity (209)'
|
| 210 |
+
- source_sentence: consolidated cash flow operating activities 2021
|
| 211 |
+
sentences:
|
| 212 |
+
- 'CONSOLIDATED FINANCIAL STATEMENTS Bufab Annual and Sustainability Report 2021
|
| 213 |
+
| 53
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
Note 31 Dec 2021 31 Dec 2020 SEK million Operating activities Profit before financial
|
| 217 |
+
items 664 452 Depreciation/amortisation and impairment 193 183 Interest and other
|
| 218 |
+
finance income 1 3 Interest and other finance expenses –52 –60 Other non-cash
|
| 219 |
+
items 45 –8 Income tax paid –137 –89 Cash flow from operating activities before
|
| 220 |
+
changes in working capital 714 480 Cash flow from changes in working capital Increase
|
| 221 |
+
(–) / decrease (+) in inventories –651 96 Increase (–) / decrease (+) in operating
|
| 222 |
+
receivables –200 –111 Increase (+) / decrease (–) in operating liabilities 309
|
| 223 |
+
105 Cash flow from operating activities 172 570 Investing activities Acquisition
|
| 224 |
+
of intangible assets –31 –5 Acquisition of property, plant and equipment –3 –61
|
| 225 |
+
Company acquisitions including additional purchase considerations 33 –301 –23
|
| 226 |
+
Cash flow from investing activities –335 –89 Financing activities Dividend paid
|
| 227 |
+
–103 0 Call options 34 4 3 Repurchase of own shares 34 0 0 Redemption call options/sale
|
| 228 |
+
of own shares 15 10 Amortisation lease contracts –111 –109 Borrowings, non-current
|
| 229 |
+
36 461 284 Loan repayments, non-current 36 –230 –631 Change in current liabilities
|
| 230 |
+
36 122 –62 Cash flow from financing activities 158 –396 Cash flow for the year
|
| 231 |
+
36 –5 86 Cash and cash equivalents at beginning of year 292 216 Translation differences
|
| 232 |
+
6 –10 Cash and cash equivalents at year-end 293 292
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
Consolidated cash-flow statement'
|
| 236 |
+
- 'The above statement should be read in conjunction with the accompanying notes.
|
| 237 |
+
- 13 - PleaseSign Document PLSDOC02dd252c8d63bbf4cc3f8e86c0
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
Note 2021 $''000 2020 $''000 Cash flow from operating activities Cash receipts
|
| 241 |
+
in the course of operations 141,276 Cash payments in the course of operations
|
| 242 |
+
(134,477) Income tax paid - Interest received 12 Interest paid (5) 19(b) Net cash
|
| 243 |
+
received in operating activities 6,806 Cash flow from investment activities Payments
|
| 244 |
+
for purchases of property, plant and equipment (64) Principal received from Finance
|
| 245 |
+
Leased Assets 375 Interest received from Finance Leased Assets 122 Net cash used
|
| 246 |
+
in investing activities 433 Cash flow from financing activities Dividends paid
|
| 247 |
+
(792) (Repayment)/Proceeds from Bank Loans (120) Principal paid for Finance Leased
|
| 248 |
+
Liabilities (745) Interest paid for Finance Leased Liabilities (328) Net cash
|
| 249 |
+
used in financing activities (1,985) Net Increase in cash held 5,254 Cash and
|
| 250 |
+
cash equivalents at beginning of financial year 4,182 19(a) Cash and cash equivalents
|
| 251 |
+
at end of financial year 9,436
|
| 252 |
+
|
| 253 |
+
|
| 254 |
+
CONSOLIDATED STATEMENT OF CASH FLOWS FOR THE YEAR ENDED 30 JUNE 2021'
|
| 255 |
+
- 'The illustration reflects TDC Group''s Q1 2020 performance based on our segment
|
| 256 |
+
reporting. Following the legal separation, trading on an arm''s length basis between
|
| 257 |
+
Nuuday, TDC NET and the shared services centres in Headquarters has been implemented
|
| 258 |
+
and is reflected in the financial figures.
|
| 259 |
+
|
| 260 |
+
|
| 261 |
+
Business unit performance in Q1 2020
|
| 262 |
+
|
| 263 |
+
|
| 264 |
+
TDC Group tdc net nuuday Revenue (DKKm) 4,126 (-4.1%) 1,773 (-0.7%) 3,764 (-4.2%)
|
| 265 |
+
Gross profit (DKKm) 2,979 (-3.8%) 1,653 (-2.1%) 1,406 (-4.5%) EBITDA (DKKm) 1,664
|
| 266 |
+
(-2.0%) 1,125 (0.6%) 458 (-9.1%)
|
| 267 |
+
|
| 268 |
+
|
| 269 |
+
1 Both absolute figures and growth rates do not amount to 100% as headquarters
|
| 270 |
+
and eliminations are not included in the table.'
|
| 271 |
+
- source_sentence: How many kilometers of National Highways were constructed by NHAI
|
| 272 |
+
in the 2023-24 period?
|
| 273 |
+
sentences:
|
| 274 |
+
- 'Year EPC BOT-Toll HAM TOT FY19 59% 41% FY20 82% 12% 6% FY21 47% 44% 9% FY22 40%
|
| 275 |
+
56% 1% 2% FY23 43% 51% 2% 3% FY24 56% 24% 20%
|
| 276 |
+
|
| 277 |
+
|
| 278 |
+
This offers private capital a major opportunity to invest in infrastructure growth.
|
| 279 |
+
|
| 280 |
+
|
| 281 |
+
Private Capex picking Momentum
|
| 282 |
+
|
| 283 |
+
|
| 284 |
+
Yearly Awards (in Kms)
|
| 285 |
+
|
| 286 |
+
|
| 287 |
+
Source: pib.gov.in, MoRTH, PTI and SIAM India, World Road Statistics 2023, CRISIL
|
| 288 |
+
|
| 289 |
+
|
| 290 |
+
NHAI plans to monetize INR 600 Bn of operational highways via the TOT Model.
|
| 291 |
+
|
| 292 |
+
|
| 293 |
+
These assets (which includes 95% of EPC/HAM road projects) were previously on
|
| 294 |
+
NHAI''s balance sheet.
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
Opportunities under PPP
|
| 298 |
+
|
| 299 |
+
|
| 300 |
+
Projects totaling 871 Kms, valued at Rs. 456 bn, will likely be available for
|
| 301 |
+
bidding on BOT basis, including opportunities from NHAI & other State Agencies.
|
| 302 |
+
|
| 303 |
+
|
| 304 |
+
Total completed National Highway stands at ~146,000 kms, of which ~46,179 kms
|
| 305 |
+
is 4 lane and above in configuration.
|
| 306 |
+
|
| 307 |
+
|
| 308 |
+
This shift to private investment frees up NHAI resources for new projects and
|
| 309 |
+
network expansion.
|
| 310 |
+
|
| 311 |
+
|
| 312 |
+
28'
|
| 313 |
+
- '2021年度 2022年度 増減 概況 半導体 売上高 1,294 1,469 174 ディスク媒体事業からの撤退影響があったものの、電動車(xEV)向け及び産業分野向けのパワー半導体の需要拡大及び為替影響により、売上高は前年同期を上回りました。また、営業損益も、パワー半導体の生産能力増強に係る費用の増加や素材価格及び動力費の高騰影響があったものの、高操業の維持による生産及び売上の増加により、前年同期を上回りました。
|
| 314 |
+
営業損益 192 225 33 発電プラント 売上高 443 557 113 再生可能エネルギーの大口案件及び案件差等により、売上高、営業損益ともに前年同期を上回りました。
|
| 315 |
+
営業損益 -11 2 14 食品流通 売上高 653 684 31 自販機 14%増収 中国の子会社における貸倒引当金計上による損益悪化影響があったものの、国内の需要拡大に加え、原価低減の推進等により、売上高、営業損益ともに前年同期を上回りました。店舗流通
|
| 316 |
+
3%減収 営業損益 16 29 13 前年同期の金銭機器の大口案件影響により、売上高、営業損益ともに前年同期を下回りました。
|
| 317 |
+
|
| 318 |
+
|
| 319 |
+
2021年度 2022年度 増減 産業 776 785 9 ディスク媒体 60 0 -60 電装 519 684 165
|
| 320 |
+
|
| 321 |
+
|
| 322 |
+
売上高内訳
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
+53 +29 8*為替影響※ 2021年度実績は、2022年度の事業組替の数値を反映しています。
|
| 326 |
+
|
| 327 |
+
|
| 328 |
+
(単位:億円)
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
第3四半期累計 セグメント別概況②(対前年)'
|
| 332 |
+
- 'FY length Constructed (kms) FY15 4410 FY16 6061 FY17 8231 FY18 9829 FY19 10956
|
| 333 |
+
FY20 10237 FY21 13327 FY22 10457 FY23 10301 8MFY24 5248
|
| 334 |
+
|
| 335 |
+
|
| 336 |
+
Highway construction growth 20%
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
1.46 Lakh Km+ 28.3 Km/Day
|
| 340 |
+
|
| 341 |
+
|
| 342 |
+
Growing Private Sector Involvement
|
| 343 |
+
|
| 344 |
+
|
| 345 |
+
6.37 Mn. Kms
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
INVESTOR PRESENTATION 26
|
| 349 |
+
|
| 350 |
+
|
| 351 |
+
INDUSTRY OVERVIEW (INDIA)
|
| 352 |
+
|
| 353 |
+
|
| 354 |
+
60 HAM Projects Rolled Out worth over $10 Bn
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
National Highways (NH) constructions
|
| 358 |
+
|
| 359 |
+
|
| 360 |
+
2nd Largest Road Network in the World
|
| 361 |
+
|
| 362 |
+
|
| 363 |
+
Rapid Growth in National Highways
|
| 364 |
+
|
| 365 |
+
|
| 366 |
+
2023-24
|
| 367 |
+
|
| 368 |
+
|
| 369 |
+
NHAI Constructed 6,644 km
|
| 370 |
+
|
| 371 |
+
|
| 372 |
+
Investment raised by NHAI InvIT - $102 Bn+ (from Fils & Dils upto Dec 2022) (Source)
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
Total length of National Highways (2022-23)'
|
| 376 |
+
- source_sentence: deferred tax assets opening balance inventory loss 2022
|
| 377 |
+
sentences:
|
| 378 |
+
- 'e. Information on unused loss carryforwards
|
| 379 |
+
|
| 380 |
+
|
| 381 |
+
The movements of deferred tax assets and deferred tax liabilities were as follows:
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
For the year ended December 31, 2021
|
| 385 |
+
|
| 386 |
+
|
| 387 |
+
December 31 2022 Loss carryforwards Expiry in 2027 $ - Expiry in 2028 $ 46,056
|
| 388 |
+
Expiry in 2029 $ 72,486 Expiry in 2030 $ 97,191 Total $ 215,733
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
Opening Balance Recognized in Profit or Loss Closing Balance Temporary differences
|
| 392 |
+
Unrealized exchange gain and loss $ 3 $ (332) Unrealized inventory loss $ 1,113
|
| 393 |
+
$ 560 Others $ 402 $ (228) Total $ 1,518 $ -
|
| 394 |
+
|
| 395 |
+
|
| 396 |
+
Opening Balance Recognized in Profit or Loss Closing Balance Temporary differences
|
| 397 |
+
Unrealized exchange gain and loss $ 113 $ (110) Unrealized inventory loss $ 1,849
|
| 398 |
+
$ (736) Others $ (444) $ 846 Total $ 1,518 $ -
|
| 399 |
+
|
| 400 |
+
|
| 401 |
+
Unused Amount Expiry Year $ 46,056 2028 $ 72,486 2029 $ 97,191 2030 Total $ 215,733
|
| 402 |
+
|
| 403 |
+
|
| 404 |
+
d. Items for which no deferred tax assets have been recognized
|
| 405 |
+
|
| 406 |
+
|
| 407 |
+
The Company offset certain deferred tax assets and deferred tax liabilities which
|
| 408 |
+
met the offset criteria.
|
| 409 |
+
|
| 410 |
+
|
| 411 |
+
c. Deferred tax assets and liabilities
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
Loss carryforwards as of December 31, 2022 comprised:
|
| 415 |
+
|
| 416 |
+
|
| 417 |
+
For the year ended December 31, 2022'
|
| 418 |
+
- 'PILGRIM FOODSERVICE LIMITED
|
| 419 |
+
|
| 420 |
+
NOTES TO THE FINANCIAL STATEMENTS (CONTINUED)
|
| 421 |
+
|
| 422 |
+
FOR THE YEAR ENDED 30 APRIL 2025
|
| 423 |
+
|
| 424 |
+
|
| 425 |
+
| | | 2025 £ | 2024 £ |
|
| 426 |
+
|
| 427 |
+
|---|---|---|---|
|
| 428 |
+
|
| 429 |
+
| 17 | Stocks | | |
|
| 430 |
+
|
| 431 |
+
| | Finished goods and goods for resale | 4,149,563 | 3,602,784 |
|
| 432 |
+
|
| 433 |
+
|
| 434 |
+
| | | 2025 £ | 2024 £ |
|
| 435 |
+
|
| 436 |
+
|---|---|---|---|
|
| 437 |
+
|
| 438 |
+
| 18 | Debtors | | |
|
| 439 |
+
|
| 440 |
+
| | Amounts falling due within one year: | | |
|
| 441 |
+
|
| 442 |
+
| | Trade debtors | 4,056,601 | 3,939,861 |
|
| 443 |
+
|
| 444 |
+
| | Corporation tax recoverable | 386,649 | - |
|
| 445 |
+
|
| 446 |
+
| | Other debtors | 51,029 | 285,195 |
|
| 447 |
+
|
| 448 |
+
| | Prepayments and accrued income | 894,513 | 810,422 |
|
| 449 |
+
|
| 450 |
+
| | | 5,388,792 | 5,035,478 |
|
| 451 |
+
|
| 452 |
+
|
| 453 |
+
| | | Notes | 2025 £ | 2024 £ |
|
| 454 |
+
|
| 455 |
+
|---|---|---|---|---|
|
| 456 |
+
|
| 457 |
+
| 19 | Creditors: amounts falling due within one year | | | |
|
| 458 |
+
|
| 459 |
+
| | Bank loans and overdrafts | 21 | 750,004 | 1,572,186 |
|
| 460 |
+
|
| 461 |
+
| | Obligations under finance leases | 22 | 929,382 | 221,527 |
|
| 462 |
+
|
| 463 |
+
| | Trade creditors | | 6,972,922 | 5,358,604 |
|
| 464 |
+
|
| 465 |
+
| | Amounts due to group undertakings | | 49,502 | - |
|
| 466 |
+
|
| 467 |
+
| | Corporation tax | | 324,698 | 342,382 |
|
| 468 |
+
|
| 469 |
+
| | Other taxation and social security | | 843,069 | 292,562 |
|
| 470 |
+
|
| 471 |
+
| | Other creditors | | 3,361,115 | 802,545 |
|
| 472 |
+
|
| 473 |
+
| | Accruals | | | 2,269,019 |
|
| 474 |
+
|
| 475 |
+
| | | | 13,230,692 | 10,858,915 |
|
| 476 |
+
|
| 477 |
+
|
| 478 |
+
| | | Notes | 2025 £ | 2024 £ |
|
| 479 |
+
|
| 480 |
+
|---|---|---|---|---|
|
| 481 |
+
|
| 482 |
+
| 20 | Creditors: amounts falling due after more than one year | | | |
|
| 483 |
+
|
| 484 |
+
| | Bank loans and overdrafts | 21 | 1,174,972 | 1,925,178 |
|
| 485 |
+
|
| 486 |
+
| | Obligations under finance leases | 22 | 3,026,050 | 927,331 |
|
| 487 |
+
|
| 488 |
+
| | Shareholder loans | 21 | 1,925,125 | 681,083 |
|
| 489 |
+
|
| 490 |
+
| | | | 6,126,147 | 3,533,592 |
|
| 491 |
+
|
| 492 |
+
|
| 493 |
+
-26-'
|
| 494 |
+
- 'The movements of deferred tax assets and deferred tax liabilities were as follows:
|
| 495 |
+
|
| 496 |
+
|
| 497 |
+
For the year ended December 31, 2022
|
| 498 |
+
|
| 499 |
+
|
| 500 |
+
d. Deferred tax assets and liabilities
|
| 501 |
+
|
| 502 |
+
|
| 503 |
+
December 31 2022 2021 Current tax liabilities Income tax payable $ 473,781 $ 255,744
|
| 504 |
+
|
| 505 |
+
|
| 506 |
+
b. Income tax recognized in other comprehensive income
|
| 507 |
+
|
| 508 |
+
|
| 509 |
+
Opening Balance Recognized in Profit or Loss Recognized in Other Comprehensive
|
| 510 |
+
Income Closing Balance Deferred tax assets Temporary differences Unrealized loss
|
| 511 |
+
on write-down of inventories $ 250 $ 8 $ - $ 258 Unrealized employee compensation
|
| 512 |
+
241 (241) - - Exchanges difference on foreign operations 73,357 - (23,271) 50,086
|
| 513 |
+
Unrealized exchange losses 15,010 (15,010) - - Total $ 88,858 $ (15,243) $ (23,271)
|
| 514 |
+
$ 50,344 Deferred tax liabilities Temporary differences Unrealized exchange gain
|
| 515 |
+
$ - $ 2,525 $ - $ 2,525
|
| 516 |
+
|
| 517 |
+
|
| 518 |
+
For the Year Ended December 31 2022 2021 Deferred tax In respect of the current
|
| 519 |
+
year $ (23,271) $ (9,510) Translation of foreign operations
|
| 520 |
+
|
| 521 |
+
|
| 522 |
+
c. Current tax assets and liabilities'
|
| 523 |
+
pipeline_tag: sentence-similarity
|
| 524 |
+
library_name: sentence-transformers
|
| 525 |
+
metrics:
|
| 526 |
+
- cosine_accuracy@1
|
| 527 |
+
- cosine_accuracy@3
|
| 528 |
+
- cosine_accuracy@5
|
| 529 |
+
- cosine_accuracy@10
|
| 530 |
+
- cosine_precision@1
|
| 531 |
+
- cosine_precision@3
|
| 532 |
+
- cosine_precision@5
|
| 533 |
+
- cosine_precision@10
|
| 534 |
+
- cosine_recall@1
|
| 535 |
+
- cosine_recall@3
|
| 536 |
+
- cosine_recall@5
|
| 537 |
+
- cosine_recall@10
|
| 538 |
+
- cosine_ndcg@10
|
| 539 |
+
- cosine_mrr@10
|
| 540 |
+
- cosine_map@100
|
| 541 |
+
model-index:
|
| 542 |
+
- name: SentenceTransformer based on nvidia/llama-nemotron-embed-1b-v2
|
| 543 |
+
results:
|
| 544 |
+
- task:
|
| 545 |
+
type: information-retrieval
|
| 546 |
+
name: Information Retrieval
|
| 547 |
+
dataset:
|
| 548 |
+
name: financial corpus
|
| 549 |
+
type: financial_corpus
|
| 550 |
+
metrics:
|
| 551 |
+
- type: cosine_accuracy@1
|
| 552 |
+
value: 0.663
|
| 553 |
+
name: Cosine Accuracy@1
|
| 554 |
+
- type: cosine_accuracy@3
|
| 555 |
+
value: 0.787
|
| 556 |
+
name: Cosine Accuracy@3
|
| 557 |
+
- type: cosine_accuracy@5
|
| 558 |
+
value: 0.837
|
| 559 |
+
name: Cosine Accuracy@5
|
| 560 |
+
- type: cosine_accuracy@10
|
| 561 |
+
value: 0.897
|
| 562 |
+
name: Cosine Accuracy@10
|
| 563 |
+
- type: cosine_precision@1
|
| 564 |
+
value: 0.663
|
| 565 |
+
name: Cosine Precision@1
|
| 566 |
+
- type: cosine_precision@3
|
| 567 |
+
value: 0.2623333333333333
|
| 568 |
+
name: Cosine Precision@3
|
| 569 |
+
- type: cosine_precision@5
|
| 570 |
+
value: 0.1674
|
| 571 |
+
name: Cosine Precision@5
|
| 572 |
+
- type: cosine_precision@10
|
| 573 |
+
value: 0.08970000000000002
|
| 574 |
+
name: Cosine Precision@10
|
| 575 |
+
- type: cosine_recall@1
|
| 576 |
+
value: 0.663
|
| 577 |
+
name: Cosine Recall@1
|
| 578 |
+
- type: cosine_recall@3
|
| 579 |
+
value: 0.787
|
| 580 |
+
name: Cosine Recall@3
|
| 581 |
+
- type: cosine_recall@5
|
| 582 |
+
value: 0.837
|
| 583 |
+
name: Cosine Recall@5
|
| 584 |
+
- type: cosine_recall@10
|
| 585 |
+
value: 0.897
|
| 586 |
+
name: Cosine Recall@10
|
| 587 |
+
- type: cosine_ndcg@10
|
| 588 |
+
value: 0.7762155985486033
|
| 589 |
+
name: Cosine Ndcg@10
|
| 590 |
+
- type: cosine_mrr@10
|
| 591 |
+
value: 0.7380559523809528
|
| 592 |
+
name: Cosine Mrr@10
|
| 593 |
+
- type: cosine_map@100
|
| 594 |
+
value: 0.742572410600174
|
| 595 |
+
name: Cosine Map@100
|
| 596 |
+
---
|
| 597 |
+
|
| 598 |
+
# SentenceTransformer based on nvidia/llama-nemotron-embed-1b-v2
|
| 599 |
+
|
| 600 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [nvidia/llama-nemotron-embed-1b-v2](https://huggingface.co/nvidia/llama-nemotron-embed-1b-v2) on the financial-filings-sparse-retrieval-training dataset. It maps sentences & paragraphs to a 2048-dimensional dense vector space and can be used for retrieval.
|
| 601 |
+
|
| 602 |
+
## Model Details
|
| 603 |
+
|
| 604 |
+
### Model Description
|
| 605 |
+
- **Model Type:** Sentence Transformer
|
| 606 |
+
- **Base model:** [nvidia/llama-nemotron-embed-1b-v2](https://huggingface.co/nvidia/llama-nemotron-embed-1b-v2) <!-- at revision 113abe4acafa848e77ead9c0623205e511932348 -->
|
| 607 |
+
- **Maximum Sequence Length:** 2048 tokens
|
| 608 |
+
- **Output Dimensionality:** 2048 dimensions
|
| 609 |
+
- **Similarity Function:** Cosine Similarity
|
| 610 |
+
- **Supported Modality:** Text
|
| 611 |
+
- **Training Dataset:**
|
| 612 |
+
- financial-filings-sparse-retrieval-training
|
| 613 |
+
<!-- - **Language:** Unknown -->
|
| 614 |
+
<!-- - **License:** Unknown -->
|
| 615 |
+
|
| 616 |
+
### Model Sources
|
| 617 |
+
|
| 618 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 619 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
|
| 620 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
| 621 |
+
|
| 622 |
+
### Full Model Architecture
|
| 623 |
+
|
| 624 |
+
```
|
| 625 |
+
SentenceTransformer(
|
| 626 |
+
(0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'LlamaBidirectionalModel'})
|
| 627 |
+
(1): Pooling({'embedding_dimension': 2048, 'pooling_mode': 'mean', 'include_prompt': True})
|
| 628 |
+
(2): Normalize({})
|
| 629 |
+
)
|
| 630 |
+
```
|
| 631 |
+
|
| 632 |
+
## Usage
|
| 633 |
+
|
| 634 |
+
### Direct Usage (Sentence Transformers)
|
| 635 |
+
|
| 636 |
+
First install the Sentence Transformers library:
|
| 637 |
+
|
| 638 |
+
```bash
|
| 639 |
+
pip install -U sentence-transformers
|
| 640 |
+
```
|
| 641 |
+
Then you can load this model and run inference.
|
| 642 |
+
```python
|
| 643 |
+
from sentence_transformers import SentenceTransformer
|
| 644 |
+
|
| 645 |
+
# Download from the 🤗 Hub
|
| 646 |
+
model = SentenceTransformer("abanfalvi/finance-llama-nemotron-embed-1b-v2")
|
| 647 |
+
# Run inference
|
| 648 |
+
queries = [
|
| 649 |
+
'deferred tax assets opening balance inventory loss 2022',
|
| 650 |
+
]
|
| 651 |
+
documents = [
|
| 652 |
+
'The movements of deferred tax assets and deferred tax liabilities were as follows:\n\nFor the year ended December 31, 2022\n\nd. Deferred tax assets and liabilities\n\nDecember 31 2022 2021 Current tax liabilities Income tax payable $ 473,781 $ 255,744\n\nb. Income tax recognized in other comprehensive income\n\nOpening Balance Recognized in Profit or Loss Recognized in Other Comprehensive Income Closing Balance Deferred tax assets Temporary differences Unrealized loss on write-down of inventories $ 250 $ 8 $ - $ 258 Unrealized employee compensation 241 (241) - - Exchanges difference on foreign operations 73,357 - (23,271) 50,086 Unrealized exchange losses 15,010 (15,010) - - Total $ 88,858 $ (15,243) $ (23,271) $ 50,344 Deferred tax liabilities Temporary differences Unrealized exchange gain $ - $ 2,525 $ - $ 2,525\n\nFor the Year Ended December 31 2022 2021 Deferred tax In respect of the current year $ (23,271) $ (9,510) Translation of foreign operations\n\nc. Current tax assets and liabilities',
|
| 653 |
+
'e. Information on unused loss carryforwards\n\nThe movements of deferred tax assets and deferred tax liabilities were as follows:\n\nFor the year ended December 31, 2021\n\nDecember 31 2022 Loss carryforwards Expiry in 2027 $ - Expiry in 2028 $ 46,056 Expiry in 2029 $ 72,486 Expiry in 2030 $ 97,191 Total $ 215,733\n\nOpening Balance Recognized in Profit or Loss Closing Balance Temporary differences Unrealized exchange gain and loss $ 3 $ (332) Unrealized inventory loss $ 1,113 $ 560 Others $ 402 $ (228) Total $ 1,518 $ -\n\nOpening Balance Recognized in Profit or Loss Closing Balance Temporary differences Unrealized exchange gain and loss $ 113 $ (110) Unrealized inventory loss $ 1,849 $ (736) Others $ (444) $ 846 Total $ 1,518 $ -\n\nUnused Amount Expiry Year $ 46,056 2028 $ 72,486 2029 $ 97,191 2030 Total $ 215,733\n\nd. Items for which no deferred tax assets have been recognized\n\nThe Company offset certain deferred tax assets and deferred tax liabilities which met the offset criteria.\n\nc. Deferred tax assets and liabilities\n\nLoss carryforwards as of December 31, 2022 comprised:\n\nFor the year ended December 31, 2022',
|
| 654 |
+
'PILGRIM FOODSERVICE LIMITED\nNOTES TO THE FINANCIAL STATEMENTS (CONTINUED)\nFOR THE YEAR ENDED 30 APRIL 2025\n\n| | | 2025 £ | 2024 £ |\n|---|---|---|---|\n| 17 | Stocks | | |\n| | Finished goods and goods for resale | 4,149,563 | 3,602,784 |\n\n| | | 2025 £ | 2024 £ |\n|---|---|---|---|\n| 18 | Debtors | | |\n| | Amounts falling due within one year: | | |\n| | Trade debtors | 4,056,601 | 3,939,861 |\n| | Corporation tax recoverable | 386,649 | - |\n| | Other debtors | 51,029 | 285,195 |\n| | Prepayments and accrued income | 894,513 | 810,422 |\n| | | 5,388,792 | 5,035,478 |\n\n| | | Notes | 2025 £ | 2024 £ |\n|---|---|---|---|---|\n| 19 | Creditors: amounts falling due within one year | | | |\n| | Bank loans and overdrafts | 21 | 750,004 | 1,572,186 |\n| | Obligations under finance leases | 22 | 929,382 | 221,527 |\n| | Trade creditors | | 6,972,922 | 5,358,604 |\n| | Amounts due to group undertakings | | 49,502 | - |\n| | Corporation tax | | 324,698 | 342,382 |\n| | Other taxation and social security | | 843,069 | 292,562 |\n| | Other creditors | | 3,361,115 | 802,545 |\n| | Accruals | | | 2,269,019 |\n| | | | 13,230,692 | 10,858,915 |\n\n| | | Notes | 2025 £ | 2024 £ |\n|---|---|---|---|---|\n| 20 | Creditors: amounts falling due after more than one year | | | |\n| | Bank loans and overdrafts | 21 | 1,174,972 | 1,925,178 |\n| | Obligations under finance leases | 22 | 3,026,050 | 927,331 |\n| | Shareholder loans | 21 | 1,925,125 | 681,083 |\n| | | | 6,126,147 | 3,533,592 |\n\n-26-',
|
| 655 |
+
]
|
| 656 |
+
query_embeddings = model.encode_query(queries)
|
| 657 |
+
document_embeddings = model.encode_document(documents)
|
| 658 |
+
print(query_embeddings.shape, document_embeddings.shape)
|
| 659 |
+
# [1, 2048] [3, 2048]
|
| 660 |
+
|
| 661 |
+
# Get the similarity scores for the embeddings
|
| 662 |
+
similarities = model.similarity(query_embeddings, document_embeddings)
|
| 663 |
+
print(similarities)
|
| 664 |
+
# tensor([[0.5039, 0.4746, 0.2891]], dtype=torch.bfloat16)
|
| 665 |
+
```
|
| 666 |
+
<!--
|
| 667 |
+
### Direct Usage (Transformers)
|
| 668 |
+
|
| 669 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 670 |
+
|
| 671 |
+
</details>
|
| 672 |
+
-->
|
| 673 |
+
|
| 674 |
+
<!--
|
| 675 |
+
### Downstream Usage (Sentence Transformers)
|
| 676 |
+
|
| 677 |
+
You can finetune this model on your own dataset.
|
| 678 |
+
|
| 679 |
+
<details><summary>Click to expand</summary>
|
| 680 |
+
|
| 681 |
+
</details>
|
| 682 |
+
-->
|
| 683 |
+
|
| 684 |
+
<!--
|
| 685 |
+
### Out-of-Scope Use
|
| 686 |
+
|
| 687 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 688 |
+
-->
|
| 689 |
+
|
| 690 |
+
## Evaluation
|
| 691 |
+
|
| 692 |
+
### Metrics
|
| 693 |
+
|
| 694 |
+
#### Information Retrieval
|
| 695 |
+
|
| 696 |
+
* Dataset: `financial_corpus`
|
| 697 |
+
* Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.sentence_transformer.evaluation.InformationRetrievalEvaluator)
|
| 698 |
+
|
| 699 |
+
| Metric | Value |
|
| 700 |
+
|:--------------------|:-----------|
|
| 701 |
+
| cosine_accuracy@1 | 0.663 |
|
| 702 |
+
| cosine_accuracy@3 | 0.787 |
|
| 703 |
+
| cosine_accuracy@5 | 0.837 |
|
| 704 |
+
| cosine_accuracy@10 | 0.897 |
|
| 705 |
+
| cosine_precision@1 | 0.663 |
|
| 706 |
+
| cosine_precision@3 | 0.2623 |
|
| 707 |
+
| cosine_precision@5 | 0.1674 |
|
| 708 |
+
| cosine_precision@10 | 0.0897 |
|
| 709 |
+
| cosine_recall@1 | 0.663 |
|
| 710 |
+
| cosine_recall@3 | 0.787 |
|
| 711 |
+
| cosine_recall@5 | 0.837 |
|
| 712 |
+
| cosine_recall@10 | 0.897 |
|
| 713 |
+
| **cosine_ndcg@10** | **0.7762** |
|
| 714 |
+
| cosine_mrr@10 | 0.7381 |
|
| 715 |
+
| cosine_map@100 | 0.7426 |
|
| 716 |
+
|
| 717 |
+
<!--
|
| 718 |
+
## Bias, Risks and Limitations
|
| 719 |
+
|
| 720 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 721 |
+
-->
|
| 722 |
+
|
| 723 |
+
<!--
|
| 724 |
+
### Recommendations
|
| 725 |
+
|
| 726 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 727 |
+
-->
|
| 728 |
+
|
| 729 |
+
## Training Details
|
| 730 |
+
|
| 731 |
+
### Training Dataset
|
| 732 |
+
|
| 733 |
+
#### financial-filings-sparse-retrieval-training
|
| 734 |
+
|
| 735 |
+
* Dataset: financial-filings-sparse-retrieval-training
|
| 736 |
+
* Size: 15,509 training samples
|
| 737 |
+
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 738 |
+
* Approximate statistics based on the first 1000 samples:
|
| 739 |
+
| | anchor | positive | negative |
|
| 740 |
+
|:--------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|
|
| 741 |
+
| type | string | string | string |
|
| 742 |
+
| details | <ul><li>min: 5 tokens</li><li>mean: 16.07 tokens</li><li>max: 61 tokens</li></ul> | <ul><li>min: 52 tokens</li><li>mean: 341.78 tokens</li><li>max: 1566 tokens</li></ul> | <ul><li>min: 56 tokens</li><li>mean: 373.04 tokens</li><li>max: 1713 tokens</li></ul> |
|
| 743 |
+
* Samples:
|
| 744 |
+
| anchor | positive | negative |
|
| 745 |
+
|:--------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 746 |
+
| <code>What is the unit of measurement used for Oil EUR on the vertical axis of the Relative Peer Well Performance chart?</code> | <code>Relative Peer Well Performance<br><br>Source: RSEG (2019)<br><br>Note: Bubbles are sized by well count and colored by oil %<br><br>Oil EUR (Mbbl/1,000')<br><br>\| \| 0 \| 5 \| 10 \| 15 \| 20 \| 25 \| 30 \| 35 \| 40 \| 45 \| 50 \| \|---\|---\|---\|---\|---\|---\|---\|---\|---\|---\|---\|---\|---\| \| Average Horizontal Interwell Spacing (ft) \| 0 \| 100 \| 200 \| 300 \| 400 \| 500 \| 600 \| 700 \| 80\|<br><br>Wellhead Liquids (%)<br><br><40 \| 40-55 \| >55</code> | <code>Exhibit B
|
| 747 |
+
|
| 748 |
+
Total Stockholder Return for the Company and each of the Peer Companies shall be calculated in accordance with the following formula, with the result expressed as a percentage:
|
| 749 |
+
|
| 750 |
+
The Company’s Relative Total Stockholder Return measured against the Peer Group shall be determined by first ranking the Company and each of the Peer Companies by their respective Total Stockholder Returns (highest to lowest) over the Performance Period. The Company’s Relative Total Stockholder Return shall be the Company’s percentile ranking determined from such numerical ranking, which percentile ranking shall be calculated as 100 multiplied by a fraction, the numerator of which is (x) the number of Peer Companies that are ranked lower than the Company by their respective Total Stockholder Returns and the denominator of which is (y) the number of Peer Companies in the Peer Group at the time of the determination minus one (1).
|
| 751 |
+
|
| 752 |
+
The number of Conditional PSUs with which you are credited, if any, at t...</code> |
|
| 753 |
+
| <code>Q3 FY22 EBITDA decline reasons inflation</code> | <code>Net sales is growing at healthy CAGR of 8.7% over 2 years, despite pandemic induced setbacks on our summer season brand sales<br><br>Metric YoY Gr 2 Year CAGR Net Sales 2.3 % 8.7% EBIDTA (34.8) % (7.0) % PBT * 1205.7 % 104.0% PAT * 1239.1 % 134.4%<br><br>Quarterly Performance - Q3 FY 22<br><br>EBIDTA de-grew mainly due to impact on gross margins on account of product mix and inflationary price increases in key raw materials & packing materials<br><br>PBT after exceptional items is growing mainly due to reduction in finance cost due to repayment of intercompany loan and nil exceptional item in the current quarter compared to Rs.342 million in previous year comparable period<br><br>The previous year comparable period includes exceptional items of Rs.342 million.</code> | <code>PVC Pipes and Fittings volume registered a y-o-y growth of 4.2% to 1,58,266 MT.
|
| 754 |
+
|
| 755 |
+
Business continues to be net debt free
|
| 756 |
+
|
| 757 |
+
PAT grew by 30% from Rs 431 Cr to 560 Cr
|
| 758 |
+
|
| 759 |
+
EBITDA dropped to Rs 242 Cr (vs. Rs. 346 Cr)
|
| 760 |
+
|
| 761 |
+
Segment Revenue – Q3 FY22
|
| 762 |
+
|
| 763 |
+
All Numbers reported in the presentation are on standalone basis
|
| 764 |
+
|
| 765 |
+
Segment Volume – Q3 FY22
|
| 766 |
+
|
| 767 |
+
Total revenue registered a y-o-y growth of 38% to Rs. 3,054 Cr
|
| 768 |
+
|
| 769 |
+
Segment MT PVC P&F 46,994 PVC Resin 43,464
|
| 770 |
+
|
| 771 |
+
PVC Resin volume registered a y-o-y decline of 36% to 43,464 MT
|
| 772 |
+
|
| 773 |
+
PVC Pipes & Fittings volume registered a y-o-y decline of 15.3% to 46,994 MT.
|
| 774 |
+
|
| 775 |
+
PVC Resin volume registered a y-o-y decline of 9.4% to 1,45,742 MT
|
| 776 |
+
|
| 777 |
+
Total revenue registered a y-o-y decline of 5.7% to Rs. 1,005 Cr from Rs.1066 Cr
|
| 778 |
+
|
| 779 |
+
Strong liquidity and healthy balance sheet
|
| 780 |
+
|
| 781 |
+
Profitability slightly impacted by higher input prices
|
| 782 |
+
|
| 783 |
+
PAT decreased by 31% from Rs 256 Cr to Rs 178 Cr
|
| 784 |
+
|
| 785 |
+
Q3 FY22 9M FY22
|
| 786 |
+
|
| 787 |
+
Segment Rs Cr PVC Resin 832 P&F 636
|
| 788 |
+
|
| 789 |
+
Strong business performance despite lower demand
|
| 790 |
+
|
| 791 |
+
Strong YTD perfo...</code> |
|
| 792 |
+
| <code>What was the total value of trade creditors in 2022?</code> | <code>2022 (£) 2021 (£) Trade debtors 1,849,235 1,877,661 Other debtors 105,874 75,543 Prepayments and accrued income 36,698 61,917 Total 1,991,807 2,015,121 Deferred tax asset (note 10) 341,000 408,000 Total Debtors 2,332,807 2,423,121
|
| 793 |
+
|
| 794 |
+
The following are the major deferred tax liabilities and assets recognised by the company and movements thereon:
|
| 795 |
+
|
| 796 |
+
The deferred tax falling due after more than one year relates to losses carried forward.
|
| 797 |
+
|
| 798 |
+
Amounts falling due within one year:
|
| 799 |
+
|
| 800 |
+
10-
|
| 801 |
+
|
| 802 |
+
Movements in the year:
|
| 803 |
+
|
| 804 |
+
Assets 2022 (£) Assets 2021 (£) Accelerated capital allowances (5,000) (6,000) Tax losses 346,000 414,000 Total Balances 341,000 408,000
|
| 805 |
+
|
| 806 |
+
Balances:
|
| 807 |
+
|
| 808 |
+
2022 (£) 2021 (£) Trade creditors 160,773 61,453 Amounts owed to group undertakings 732,753 1,370,540 Taxation and social security 234,304 239,278 Other creditors 284,740 460,640 Accruals and deferred income 903,386 1,042,016 Total Creditors 2,315,956 3,173,927
|
| 809 |
+
|
| 810 |
+
9 Creditors: amounts falling due within one year
|
| 811 |
+
|
| 812 |
+
8 Debtors
|
| 813 |
+
|
| 814 |
+
10 Deferred taxation
|
| 815 |
+
|
| 816 |
+
20...</code> | <code>15 Other non-current liabilities
|
| 817 |
+
|
| 818 |
+
2024 (£m) 2023 (£m) Trade and other debtors 22 22 Prepayments and accrued income 12 12 Total 34 34
|
| 819 |
+
|
| 820 |
+
The decrease in provisions for impairment of trade debtors and accrued income of £18m (2022/23: £18m decrease) is equal to the credit to the consolidated income statement of £14m (2022/23: £11m credit), and write-offs of trade debtors of £4m (2022/23: £7m).
|
| 821 |
+
|
| 822 |
+
13 Debtors
|
| 823 |
+
|
| 824 |
+
2024 (£m) 2023 (£m) Lease liabilities 121 120 Deferred income¹ - 25 Total 121 145
|
| 825 |
+
|
| 826 |
+
The Directors consider that the carrying amount of trade and other debtors is approximate to their fair value. Further details about the Group's credit risk management practices are disclosed in Note 16.
|
| 827 |
+
|
| 828 |
+
14 Creditors
|
| 829 |
+
|
| 830 |
+
The credit to the consolidated income statement for the year in relation to the release of impairment of trade debtors and accrued income was £14m (2022/23: £11m credit), as disclosed in Note 3.
|
| 831 |
+
|
| 832 |
+
Trade and other debtors are shown after deducting a provision for impairment against tenant debto...</code> |
|
| 833 |
+
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 834 |
+
```json
|
| 835 |
+
{
|
| 836 |
+
"scale": 20.0,
|
| 837 |
+
"similarity_fct": "cos_sim",
|
| 838 |
+
"gather_across_devices": false,
|
| 839 |
+
"directions": [
|
| 840 |
+
"query_to_doc"
|
| 841 |
+
],
|
| 842 |
+
"partition_mode": "joint",
|
| 843 |
+
"hardness_mode": null,
|
| 844 |
+
"hardness_strength": 0.0
|
| 845 |
+
}
|
| 846 |
+
```
|
| 847 |
+
|
| 848 |
+
### Evaluation Dataset
|
| 849 |
+
|
| 850 |
+
#### financial-filings-sparse-retrieval-training
|
| 851 |
+
|
| 852 |
+
* Dataset: financial-filings-sparse-retrieval-training
|
| 853 |
+
* Size: 2,738 evaluation samples
|
| 854 |
+
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 855 |
+
* Approximate statistics based on the first 1000 samples:
|
| 856 |
+
| | anchor | positive | negative |
|
| 857 |
+
|:--------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|
|
| 858 |
+
| type | string | string | string |
|
| 859 |
+
| details | <ul><li>min: 4 tokens</li><li>mean: 16.07 tokens</li><li>max: 52 tokens</li></ul> | <ul><li>min: 56 tokens</li><li>mean: 325.18 tokens</li><li>max: 1272 tokens</li></ul> | <ul><li>min: 64 tokens</li><li>mean: 355.84 tokens</li><li>max: 1099 tokens</li></ul> |
|
| 860 |
+
* Samples:
|
| 861 |
+
| anchor | positive | negative |
|
| 862 |
+
|:---------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 863 |
+
| <code>What was the regional distribution of holdings within the United States and Canada during the spring of 2020?</code> | <code>OWNERSHIP STAKE<br><br>March 2020 March 2019 Fully operational 97% 97% Construction 3% 3%<br><br>70 HICL ANNUAL REPORT 2020<br><br>March 2020 March 2019 UK 76% 77% EU 17% 15% North America 7% 8%<br><br>March 2020 March 2019 PPP projects 72% 71% Demand-based assets 20% 21% Regulated assets 8% 8%<br><br>MARKET SEGMENT<br><br>GEOGRAPHIC LOCATION<br><br>INVESTMENT STATUS<br><br>3.6 Portfolio Analysis<br><br>March 2020 March 2019 100% ownership 26% 25% 50%-100% ownership 34% 32% Less than 50% ownership 40% 43%<br><br>SECTOR<br><br>as at 31 March 2020<br><br>March 2020 March 2019 Accommodation 11% 11% Education 14% 15% Electricity, Gas & Water 8% 8% Health 30% 28% Fire, Law & Order 7% 7% Transport 30% 31%</code> | <code>PROPERTY, PLANT & EQUIPMENT
|
| 864 |
+
|
| 865 |
+
(a) At cost, except Factory land which is at cost, less amounts written off.
|
| 866 |
+
|
| 867 |
+
Particulars Land & Building Factory Building Office Equipment's Furniture & Fixtures Plant & Machinery Vehicles Computers Electrical fittings Total Tangible Assets Intangible Assets Software Total Intangible Assets GROSS BLOCK As on 1st April 2019 17.22 443.21 46.92 37.11 2,339.36 8.32 25.50 1.80 2,919.44 4.67 4.67 Additions - 3.74 0.32 45.17 - 1.53 0.40 51.16 3.76 3.76 Disposals - - - 2.64 - - - 2.64 - - At 31 March 2020 17.22 443.21 50.67 37.43 2,381.89 8.32 27.03 2.20 2,967.96 8.43 8.43 As on 1st April 2020 17.22 443.21 50.67 37.43 2,381.89 8.32 27.03 2.20 2,967.96 8.43 8.43 Additions 24.52 - 49.09 42.36 2.08 6.27 124.33 - - Disposals - - - - - - - - - - - At 31 March 2021 41.74 443.21 100.67 80.59 2,430.98 50.68 29.11 8.47 3,092.29 8.43 8.43 DEPRECIATION As on 1st April 2019 - 320.72 41.98 27.39 2,153.01 5.39 19.32 0.12 2,567.94 4.67 4.67 Charge for the year 17.21 2.98 2.52 68...</code> |
|
| 868 |
+
| <code>What is the interest rate charged on the loan to Karbon Carlton Staindrop LLP?</code> | <code>Unrelieved tax losses of £68,994 (2023: £68,994) remain available to offset against future taxable profits.
|
| 869 |
+
|
| 870 |
+
12
|
| 871 |
+
|
| 872 |
+
2024 (£) 2023 (£) Other debtors 1,821 875 Taxation 42,871 - Work in progress 8,928 - Amounts owed by Karbon Carlton Staindrop LLP 207,665 875 261,285
|
| 873 |
+
|
| 874 |
+
On the loan to Karbon Carlton Staindrop LLP, interest is charged at 7% per annum.
|
| 875 |
+
|
| 876 |
+
7 TAXATION (CONTINUED)
|
| 877 |
+
|
| 878 |
+
The tax assessed is lower than the standard rate of corporation tax in the UK (19%). The differences are explained below.
|
| 879 |
+
|
| 880 |
+
8 DEBTORS: amounts due within one year
|
| 881 |
+
|
| 882 |
+
9 DEBTORS: amounts due after one year
|
| 883 |
+
|
| 884 |
+
Current tax reconciliation
|
| 885 |
+
|
| 886 |
+
2024 (£) 2023 (£) Profit on ordinary activities before tax 5,682 374,965 Tax on profit on ordinary activities at the standard rate of corporation tax of 25% (2023: 19%) 1,421 71,243 Effects of: Expenses not deductible for tax purposes 3,113 6,157 Group relief claimed (4,534) (77,400) Current tax charge for period
|
| 887 |
+
|
| 888 |
+
2024 (£) 2023 (£) Amounts owed by Karbon Carlton Staindrop LLP - loan capital 1,776...</code> | <code>RWK GOODMAN LLP
|
| 889 |
+
NOTES TO THE FINANCIAL STATEMENTS (CONTINUED)
|
| 890 |
+
FOR THE YEAR ENDED 31 MARCH 2025
|
| 891 |
+
|
| 892 |
+
**18 Borrowings**
|
| 893 |
+
Group and LLP
|
| 894 |
+
|
| 895 |
+
|| 2025| 2024|
|
| 896 |
+
|-------|-----------|-----------|
|
| 897 |
+
| Bank loan | 7,341,667 | 6,441,667 |
|
| 898 |
+
| Bank overdrafts | 5,359,258 | 4,995,132 |
|
| 899 |
+
|| 12,700,925| 11,436,799|
|
| 900 |
+
| Payable within one year | 12,459,258| 11,095,132|
|
| 901 |
+
| Payable within two to five years | 241,667 | 341,667 |
|
| 902 |
+
|
| 903 |
+
The bank loan and overdrafts are secured by a fixed charge over book and other debts and a floating charge over all assets.
|
| 904 |
+
A revolving loan facility of £8,000,000 was agreed on 7 January 2025, replacing the existing RCF agreement dated 25 January 2022. The loan is repayable in full at the end of the term on 7 January 2030. Interest is charged quarterly at a rate of 2% over base rate.
|
| 905 |
+
A bank loan of £500,000 was agreed with HSBC UK Bank pic in August 2023. The loan is repayable over 60 months by monthly instalments of £9,903. Interest is charged at a rate of 2% over base rate.
|
| 906 |
+
|
| 907 |
+
**19 Provision...</code> |
|
| 908 |
+
| <code>Newmont Corporation 2022 restricted cash reconciliation</code> | <code>```markdown
|
| 909 |
+
NEWMONT CORPORATION
|
| 910 |
+
CONSOLIDATED STATEMENTS OF CASH FLOWS
|
| 911 |
+
|
| 912 |
+
| | | Year Ended December 31, | |
|
| 913 |
+
|---|---|---|---|
|
| 914 |
+
| | 2022 | 2021 | 2020 |
|
| 915 |
+
| | | (in millions) | |
|
| 916 |
+
|
| 917 |
+
| | | | |
|
| 918 |
+
|---|---|---|---|
|
| 919 |
+
| Reconciliation of cash, cash equivalents and restricted cash: | | | |
|
| 920 |
+
| Cash and cash equivalents | $ 2,877 | $ 4,992 | $ 5,540 |
|
| 921 |
+
| Restricted cash included in Other current assets | 1 | 2 | 2 |
|
| 922 |
+
| Restricted cash included in Other non-current assets | 66 | 99 | 106 |
|
| 923 |
+
| Total cash, cash equivalents and restricted cash | $ 2,944 | $ 5,093 | $ 5,648 |
|
| 924 |
+
|
| 925 |
+
| | | | |
|
| 926 |
+
|---|---|---|---|
|
| 927 |
+
| Supplemental cash flow information: | | | |
|
| 928 |
+
| Income and mining taxes paid, net of refunds | $ 1,122 | $ 1,534 | $ 400 |
|
| 929 |
+
| Interest paid, net of amounts capitalized | $ 172 | $ 229 | $ 261 |
|
| 930 |
+
|
| 931 |
+
(1) Acquisitions, net for the year ended December 31, 2021 is primarily related to the asset acquisition of the remaining 85.1% of GT Gold. Refer to
|
| 932 |
+
Note 1 for additional information.
|
| 933 |
+
The accompanying ...</code> | <code>Component Percentage Personal Bonus 6% Base Salary 14% Company Bonus 15% Restricted Stock Units 20% Performance Stock Units 45%<br><br>Component Objectives/Alignment Stock Price Performance • Value varies with NEM performance • Retention component Relative Stock Performance Long-term incentive to outperform gold competitors: • Absolute share price performance • Relative TSR performance Operating Performance Growth Pipeline/ Sustainability • Safety, Free Cash Flow, CSC, ROCE • Reserves and Resources • Sustainability and External Relations Leadership Measures • Individual objectives (with defined targets) • Leadership Pipeline results Base Salary • Adjusted for performance, scope • Market rate<br><br>Objectives/Alignment<br><br>Incentive vehicles balance key performance elements<br><br>Pay mix (CEO % shown)<br><br>Executive Compensation Structure<br><br>BANK OF AMERICA 2020 GLOBAL METALS, MINING & STEEL CONFERENCE NEWMONT CORPORATION<br><br>Plans support value chain to operating and market performance</code> |
|
| 934 |
+
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 935 |
+
```json
|
| 936 |
+
{
|
| 937 |
+
"scale": 20.0,
|
| 938 |
+
"similarity_fct": "cos_sim",
|
| 939 |
+
"gather_across_devices": false,
|
| 940 |
+
"directions": [
|
| 941 |
+
"query_to_doc"
|
| 942 |
+
],
|
| 943 |
+
"partition_mode": "joint",
|
| 944 |
+
"hardness_mode": null,
|
| 945 |
+
"hardness_strength": 0.0
|
| 946 |
+
}
|
| 947 |
+
```
|
| 948 |
+
|
| 949 |
+
### Training Hyperparameters
|
| 950 |
+
#### Non-Default Hyperparameters
|
| 951 |
+
|
| 952 |
+
- `per_device_train_batch_size`: 2
|
| 953 |
+
- `max_steps`: 100
|
| 954 |
+
- `learning_rate`: 3e-05
|
| 955 |
+
- `lr_scheduler_type`: constant_with_warmup
|
| 956 |
+
- `warmup_steps`: 0.03
|
| 957 |
+
- `gradient_accumulation_steps`: 8
|
| 958 |
+
- `fp16`: True
|
| 959 |
+
- `gradient_checkpointing`: True
|
| 960 |
+
- `load_best_model_at_end`: True
|
| 961 |
+
|
| 962 |
+
#### All Hyperparameters
|
| 963 |
+
<details><summary>Click to expand</summary>
|
| 964 |
+
|
| 965 |
+
- `per_device_train_batch_size`: 2
|
| 966 |
+
- `num_train_epochs`: 3.0
|
| 967 |
+
- `max_steps`: 100
|
| 968 |
+
- `learning_rate`: 3e-05
|
| 969 |
+
- `lr_scheduler_type`: constant_with_warmup
|
| 970 |
+
- `lr_scheduler_kwargs`: None
|
| 971 |
+
- `warmup_steps`: 0.03
|
| 972 |
+
- `optim`: adamw_torch_fused
|
| 973 |
+
- `optim_args`: None
|
| 974 |
+
- `weight_decay`: 0.0
|
| 975 |
+
- `adam_beta1`: 0.9
|
| 976 |
+
- `adam_beta2`: 0.999
|
| 977 |
+
- `adam_epsilon`: 1e-08
|
| 978 |
+
- `optim_target_modules`: None
|
| 979 |
+
- `gradient_accumulation_steps`: 8
|
| 980 |
+
- `average_tokens_across_devices`: True
|
| 981 |
+
- `max_grad_norm`: 1.0
|
| 982 |
+
- `label_smoothing_factor`: 0.0
|
| 983 |
+
- `bf16`: False
|
| 984 |
+
- `fp16`: True
|
| 985 |
+
- `bf16_full_eval`: False
|
| 986 |
+
- `fp16_full_eval`: False
|
| 987 |
+
- `tf32`: None
|
| 988 |
+
- `gradient_checkpointing`: True
|
| 989 |
+
- `gradient_checkpointing_kwargs`: None
|
| 990 |
+
- `torch_compile`: False
|
| 991 |
+
- `torch_compile_backend`: None
|
| 992 |
+
- `torch_compile_mode`: None
|
| 993 |
+
- `use_liger_kernel`: False
|
| 994 |
+
- `liger_kernel_config`: None
|
| 995 |
+
- `use_cache`: False
|
| 996 |
+
- `neftune_noise_alpha`: None
|
| 997 |
+
- `torch_empty_cache_steps`: None
|
| 998 |
+
- `auto_find_batch_size`: False
|
| 999 |
+
- `log_on_each_node`: True
|
| 1000 |
+
- `logging_nan_inf_filter`: True
|
| 1001 |
+
- `include_num_input_tokens_seen`: no
|
| 1002 |
+
- `log_level`: passive
|
| 1003 |
+
- `log_level_replica`: warning
|
| 1004 |
+
- `disable_tqdm`: False
|
| 1005 |
+
- `project`: huggingface
|
| 1006 |
+
- `trackio_space_id`: trackio
|
| 1007 |
+
- `per_device_eval_batch_size`: 8
|
| 1008 |
+
- `prediction_loss_only`: True
|
| 1009 |
+
- `eval_on_start`: False
|
| 1010 |
+
- `eval_do_concat_batches`: True
|
| 1011 |
+
- `eval_use_gather_object`: False
|
| 1012 |
+
- `eval_accumulation_steps`: None
|
| 1013 |
+
- `include_for_metrics`: []
|
| 1014 |
+
- `batch_eval_metrics`: False
|
| 1015 |
+
- `save_only_model`: False
|
| 1016 |
+
- `save_on_each_node`: False
|
| 1017 |
+
- `enable_jit_checkpoint`: False
|
| 1018 |
+
- `push_to_hub`: False
|
| 1019 |
+
- `hub_private_repo`: None
|
| 1020 |
+
- `hub_model_id`: None
|
| 1021 |
+
- `hub_strategy`: every_save
|
| 1022 |
+
- `hub_always_push`: False
|
| 1023 |
+
- `hub_revision`: None
|
| 1024 |
+
- `load_best_model_at_end`: True
|
| 1025 |
+
- `ignore_data_skip`: False
|
| 1026 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 1027 |
+
- `full_determinism`: False
|
| 1028 |
+
- `seed`: 42
|
| 1029 |
+
- `data_seed`: None
|
| 1030 |
+
- `use_cpu`: False
|
| 1031 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 1032 |
+
- `parallelism_config`: None
|
| 1033 |
+
- `dataloader_drop_last`: False
|
| 1034 |
+
- `dataloader_num_workers`: 0
|
| 1035 |
+
- `dataloader_pin_memory`: True
|
| 1036 |
+
- `dataloader_persistent_workers`: False
|
| 1037 |
+
- `dataloader_prefetch_factor`: None
|
| 1038 |
+
- `remove_unused_columns`: True
|
| 1039 |
+
- `label_names`: None
|
| 1040 |
+
- `train_sampling_strategy`: random
|
| 1041 |
+
- `length_column_name`: length
|
| 1042 |
+
- `ddp_find_unused_parameters`: None
|
| 1043 |
+
- `ddp_bucket_cap_mb`: None
|
| 1044 |
+
- `ddp_broadcast_buffers`: False
|
| 1045 |
+
- `ddp_backend`: None
|
| 1046 |
+
- `ddp_timeout`: 1800
|
| 1047 |
+
- `fsdp`: []
|
| 1048 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
| 1049 |
+
- `deepspeed`: None
|
| 1050 |
+
- `debug`: []
|
| 1051 |
+
- `skip_memory_metrics`: True
|
| 1052 |
+
- `do_predict`: False
|
| 1053 |
+
- `resume_from_checkpoint`: None
|
| 1054 |
+
- `warmup_ratio`: None
|
| 1055 |
+
- `local_rank`: -1
|
| 1056 |
+
- `prompts`: None
|
| 1057 |
+
- `batch_sampler`: batch_sampler
|
| 1058 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 1059 |
+
- `router_mapping`: {}
|
| 1060 |
+
- `learning_rate_mapping`: {}
|
| 1061 |
+
|
| 1062 |
+
</details>
|
| 1063 |
+
|
| 1064 |
+
### Training Logs
|
| 1065 |
+
<details><summary>Click to expand</summary>
|
| 1066 |
+
|
| 1067 |
+
| Epoch | Step | Training Loss | Validation Loss | financial_corpus_cosine_ndcg@10 |
|
| 1068 |
+
|:----------:|:-------:|:-------------:|:---------------:|:-------------------------------:|
|
| 1069 |
+
| 0.0021 | 1 | 0.8457 | - | - |
|
| 1070 |
+
| 0.0041 | 2 | 0.7959 | - | - |
|
| 1071 |
+
| 0.0062 | 3 | 0.4863 | - | - |
|
| 1072 |
+
| 0.0083 | 4 | 0.6768 | - | - |
|
| 1073 |
+
| 0.0103 | 5 | 0.5869 | - | - |
|
| 1074 |
+
| 0.0124 | 6 | 0.5967 | - | - |
|
| 1075 |
+
| 0.0144 | 7 | 0.7900 | - | - |
|
| 1076 |
+
| 0.0165 | 8 | 0.7373 | - | - |
|
| 1077 |
+
| 0.0186 | 9 | 0.4951 | - | - |
|
| 1078 |
+
| 0.0206 | 10 | 0.5439 | - | - |
|
| 1079 |
+
| 0.0227 | 11 | 0.4619 | - | - |
|
| 1080 |
+
| 0.0248 | 12 | 0.6357 | - | - |
|
| 1081 |
+
| 0.0268 | 13 | 0.5322 | - | - |
|
| 1082 |
+
| 0.0289 | 14 | 0.4619 | - | - |
|
| 1083 |
+
| 0.0309 | 15 | 0.6592 | - | - |
|
| 1084 |
+
| 0.0330 | 16 | 0.7598 | - | - |
|
| 1085 |
+
| 0.0351 | 17 | 0.4766 | - | - |
|
| 1086 |
+
| 0.0371 | 18 | 0.7471 | - | - |
|
| 1087 |
+
| 0.0392 | 19 | 0.7686 | - | - |
|
| 1088 |
+
| 0.0413 | 20 | 0.4521 | - | - |
|
| 1089 |
+
| 0.0433 | 21 | 0.5898 | - | - |
|
| 1090 |
+
| 0.0454 | 22 | 0.5352 | - | - |
|
| 1091 |
+
| 0.0474 | 23 | 0.7715 | - | - |
|
| 1092 |
+
| 0.0495 | 24 | 0.5576 | - | - |
|
| 1093 |
+
| 0.0516 | 25 | 0.6650 | 0.7444 | - |
|
| 1094 |
+
| 0.0536 | 26 | 0.2832 | - | - |
|
| 1095 |
+
| 0.0557 | 27 | 0.5557 | - | - |
|
| 1096 |
+
| 0.0578 | 28 | 0.6738 | - | - |
|
| 1097 |
+
| 0.0598 | 29 | 0.5635 | - | - |
|
| 1098 |
+
| 0.0619 | 30 | 0.5264 | - | - |
|
| 1099 |
+
| 0.0640 | 31 | 0.5576 | - | - |
|
| 1100 |
+
| 0.0660 | 32 | 0.7480 | - | - |
|
| 1101 |
+
| 0.0681 | 33 | 0.3516 | - | - |
|
| 1102 |
+
| 0.0701 | 34 | 0.4668 | - | - |
|
| 1103 |
+
| 0.0722 | 35 | 0.3682 | - | - |
|
| 1104 |
+
| 0.0743 | 36 | 0.4756 | - | - |
|
| 1105 |
+
| 0.0763 | 37 | 0.4404 | - | - |
|
| 1106 |
+
| 0.0784 | 38 | 0.4287 | - | - |
|
| 1107 |
+
| 0.0805 | 39 | 0.4297 | - | - |
|
| 1108 |
+
| 0.0825 | 40 | 0.5137 | - | - |
|
| 1109 |
+
| 0.0846 | 41 | 0.5010 | - | - |
|
| 1110 |
+
| 0.0866 | 42 | 0.3525 | - | - |
|
| 1111 |
+
| 0.0887 | 43 | 0.4746 | - | - |
|
| 1112 |
+
| 0.0908 | 44 | 0.4766 | - | - |
|
| 1113 |
+
| 0.0928 | 45 | 0.4453 | - | - |
|
| 1114 |
+
| 0.0949 | 46 | 0.5273 | - | - |
|
| 1115 |
+
| 0.0970 | 47 | 0.5205 | - | - |
|
| 1116 |
+
| 0.0990 | 48 | 0.4502 | - | - |
|
| 1117 |
+
| 0.1011 | 49 | 0.6289 | - | - |
|
| 1118 |
+
| 0.1031 | 50 | 0.6191 | 0.6595 | - |
|
| 1119 |
+
| 0.1052 | 51 | 0.4775 | - | - |
|
| 1120 |
+
| 0.1073 | 52 | 0.4365 | - | - |
|
| 1121 |
+
| 0.1093 | 53 | 0.4365 | - | - |
|
| 1122 |
+
| 0.1114 | 54 | 0.5840 | - | - |
|
| 1123 |
+
| 0.1135 | 55 | 0.3516 | - | - |
|
| 1124 |
+
| 0.1155 | 56 | 0.3691 | - | - |
|
| 1125 |
+
| 0.1176 | 57 | 0.4629 | - | - |
|
| 1126 |
+
| 0.1196 | 58 | 0.6191 | - | - |
|
| 1127 |
+
| 0.1217 | 59 | 0.5908 | - | - |
|
| 1128 |
+
| 0.1238 | 60 | 0.3848 | - | - |
|
| 1129 |
+
| 0.1258 | 61 | 0.3730 | - | - |
|
| 1130 |
+
| 0.1279 | 62 | 0.5732 | - | - |
|
| 1131 |
+
| 0.1300 | 63 | 0.5830 | - | - |
|
| 1132 |
+
| 0.1320 | 64 | 0.4727 | - | - |
|
| 1133 |
+
| 0.1341 | 65 | 0.3613 | - | - |
|
| 1134 |
+
| 0.1362 | 66 | 0.4678 | - | - |
|
| 1135 |
+
| 0.1382 | 67 | 0.5986 | - | - |
|
| 1136 |
+
| 0.1403 | 68 | 0.2617 | - | - |
|
| 1137 |
+
| 0.1423 | 69 | 0.3809 | - | - |
|
| 1138 |
+
| 0.1444 | 70 | 0.4395 | - | - |
|
| 1139 |
+
| 0.1465 | 71 | 0.3418 | - | - |
|
| 1140 |
+
| 0.1485 | 72 | 0.3809 | - | - |
|
| 1141 |
+
| 0.1506 | 73 | 0.3721 | - | - |
|
| 1142 |
+
| 0.1527 | 74 | 0.3877 | - | - |
|
| 1143 |
+
| 0.1547 | 75 | 0.3438 | 0.6091 | - |
|
| 1144 |
+
| 0.1568 | 76 | 0.4131 | - | - |
|
| 1145 |
+
| 0.1588 | 77 | 0.6221 | - | - |
|
| 1146 |
+
| 0.1609 | 78 | 0.3652 | - | - |
|
| 1147 |
+
| 0.1630 | 79 | 0.3164 | - | - |
|
| 1148 |
+
| 0.1650 | 80 | 0.3135 | - | - |
|
| 1149 |
+
| 0.1671 | 81 | 0.2764 | - | - |
|
| 1150 |
+
| 0.1692 | 82 | 0.7373 | - | - |
|
| 1151 |
+
| 0.1712 | 83 | 0.3223 | - | - |
|
| 1152 |
+
| 0.1733 | 84 | 0.4902 | - | - |
|
| 1153 |
+
| 0.1753 | 85 | 0.4219 | - | - |
|
| 1154 |
+
| 0.1774 | 86 | 0.3428 | - | - |
|
| 1155 |
+
| 0.1795 | 87 | 0.3291 | - | - |
|
| 1156 |
+
| 0.1815 | 88 | 0.3135 | - | - |
|
| 1157 |
+
| 0.1836 | 89 | 0.3945 | - | - |
|
| 1158 |
+
| 0.1857 | 90 | 0.2939 | - | - |
|
| 1159 |
+
| 0.1877 | 91 | 0.3135 | - | - |
|
| 1160 |
+
| 0.1898 | 92 | 0.3682 | - | - |
|
| 1161 |
+
| 0.1919 | 93 | 0.5322 | - | - |
|
| 1162 |
+
| 0.1939 | 94 | 0.3594 | - | - |
|
| 1163 |
+
| 0.1960 | 95 | 0.2666 | - | - |
|
| 1164 |
+
| 0.1980 | 96 | 0.3730 | - | - |
|
| 1165 |
+
| 0.2001 | 97 | 0.4292 | - | - |
|
| 1166 |
+
| 0.2022 | 98 | 0.4131 | - | - |
|
| 1167 |
+
| 0.2042 | 99 | 0.4580 | - | - |
|
| 1168 |
+
| **0.2063** | **100** | **0.3711** | **0.5381** | **-** |
|
| 1169 |
+
| -1 | -1 | - | - | 0.7762 |
|
| 1170 |
+
|
| 1171 |
+
* The bold row denotes the saved checkpoint.
|
| 1172 |
+
</details>
|
| 1173 |
+
|
| 1174 |
+
### Training Time
|
| 1175 |
+
- **Training**: 4.6 hours
|
| 1176 |
+
|
| 1177 |
+
### Framework Versions
|
| 1178 |
+
- Python: 3.12.13
|
| 1179 |
+
- Sentence Transformers: 5.4.1
|
| 1180 |
+
- Transformers: 5.5.0
|
| 1181 |
+
- PyTorch: 2.10.0+cu128
|
| 1182 |
+
- Accelerate: 1.13.0
|
| 1183 |
+
- Datasets: 4.3.0
|
| 1184 |
+
- Tokenizers: 0.22.2
|
| 1185 |
+
|
| 1186 |
+
## Citation
|
| 1187 |
+
|
| 1188 |
+
### BibTeX
|
| 1189 |
+
|
| 1190 |
+
#### Sentence Transformers
|
| 1191 |
+
```bibtex
|
| 1192 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 1193 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 1194 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 1195 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 1196 |
+
month = "11",
|
| 1197 |
+
year = "2019",
|
| 1198 |
+
publisher = "Association for Computational Linguistics",
|
| 1199 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 1200 |
+
}
|
| 1201 |
+
```
|
| 1202 |
+
|
| 1203 |
+
#### MultipleNegativesRankingLoss
|
| 1204 |
+
```bibtex
|
| 1205 |
+
@misc{oord2019representationlearningcontrastivepredictive,
|
| 1206 |
+
title={Representation Learning with Contrastive Predictive Coding},
|
| 1207 |
+
author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
|
| 1208 |
+
year={2019},
|
| 1209 |
+
eprint={1807.03748},
|
| 1210 |
+
archivePrefix={arXiv},
|
| 1211 |
+
primaryClass={cs.LG},
|
| 1212 |
+
url={https://arxiv.org/abs/1807.03748},
|
| 1213 |
+
}
|
| 1214 |
+
```
|
| 1215 |
+
|
| 1216 |
+
<!--
|
| 1217 |
+
## Glossary
|
| 1218 |
+
|
| 1219 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 1220 |
+
-->
|
| 1221 |
+
|
| 1222 |
+
<!--
|
| 1223 |
+
## Model Card Authors
|
| 1224 |
+
|
| 1225 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 1226 |
+
-->
|
| 1227 |
+
|
| 1228 |
+
<!--
|
| 1229 |
+
## Model Card Contact
|
| 1230 |
+
|
| 1231 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 1232 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LlamaBidirectionalModel"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"auto_map": {
|
| 8 |
+
"AutoConfig": "llama_bidirectional_model.LlamaBidirectionalConfig",
|
| 9 |
+
"AutoModel": "llama_bidirectional_model.LlamaBidirectionalModel"
|
| 10 |
+
},
|
| 11 |
+
"bos_token_id": 128000,
|
| 12 |
+
"dtype": "bfloat16",
|
| 13 |
+
"eos_token_id": 128001,
|
| 14 |
+
"head_dim": 64,
|
| 15 |
+
"hidden_act": "silu",
|
| 16 |
+
"hidden_size": 2048,
|
| 17 |
+
"initializer_range": 0.02,
|
| 18 |
+
"intermediate_size": 8192,
|
| 19 |
+
"max_position_embeddings": 131072,
|
| 20 |
+
"mlp_bias": false,
|
| 21 |
+
"model_type": "llama_bidirec",
|
| 22 |
+
"num_attention_heads": 32,
|
| 23 |
+
"num_hidden_layers": 16,
|
| 24 |
+
"num_key_value_heads": 8,
|
| 25 |
+
"pad_token_id": null,
|
| 26 |
+
"pooling": "avg",
|
| 27 |
+
"pretraining_tp": 1,
|
| 28 |
+
"rms_norm_eps": 1e-05,
|
| 29 |
+
"rope_parameters": {
|
| 30 |
+
"factor": 32.0,
|
| 31 |
+
"high_freq_factor": 4.0,
|
| 32 |
+
"low_freq_factor": 1.0,
|
| 33 |
+
"original_max_position_embeddings": 8192,
|
| 34 |
+
"rope_theta": 500000.0,
|
| 35 |
+
"rope_type": "llama3"
|
| 36 |
+
},
|
| 37 |
+
"temperature": 1.0,
|
| 38 |
+
"tie_word_embeddings": true,
|
| 39 |
+
"transformers_version": "5.5.0",
|
| 40 |
+
"use_bidirectional_attention": true,
|
| 41 |
+
"use_cache": true,
|
| 42 |
+
"vocab_size": 128256
|
| 43 |
+
}
|
config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__version__": {
|
| 3 |
+
"pytorch": "2.10.0+cu128",
|
| 4 |
+
"sentence_transformers": "5.4.1",
|
| 5 |
+
"transformers": "5.5.0"
|
| 6 |
+
},
|
| 7 |
+
"default_prompt_name": null,
|
| 8 |
+
"model_type": "SentenceTransformer",
|
| 9 |
+
"prompts": {
|
| 10 |
+
"document": "passage: ",
|
| 11 |
+
"query": "query: "
|
| 12 |
+
},
|
| 13 |
+
"similarity_fn_name": "cosine"
|
| 14 |
+
}
|
llama_bidirectional_model.py
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0.
|
| 3 |
+
"""
|
| 4 |
+
Bidirectional Llama model for embedding tasks.
|
| 5 |
+
|
| 6 |
+
This module provides a modified LlamaModel that uses bidirectional (non-causal)
|
| 7 |
+
attention, suitable for generating embeddings where each token should attend
|
| 8 |
+
to all other tokens in the sequence.
|
| 9 |
+
|
| 10 |
+
Supports transformers version 4.44 and above with a unified forward() implementation.
|
| 11 |
+
|
| 12 |
+
Version compatibility notes:
|
| 13 |
+
- transformers 4.47: Setting _attn_implementation in __init__ had no effect due to
|
| 14 |
+
attention initialization order
|
| 15 |
+
- transformers 4.48+: Attention refactor (transformers#35235) activated the
|
| 16 |
+
_attn_implementation setting, which defaulted to "eager" instead of "sdpa"
|
| 17 |
+
- transformers < 4.53: LlamaModel has _update_causal_mask method that can be overridden
|
| 18 |
+
- transformers 4.53+: _update_causal_mask removed; masking moved to masking_utils module,
|
| 19 |
+
necessitating a full forward() override for custom attention masks
|
| 20 |
+
- transformers < 4.54: Decoder layer returns tuple, uses past_key_value (singular)
|
| 21 |
+
- transformers 4.54-4.55: Decoder layer returns tensor, uses past_key_value (singular)
|
| 22 |
+
- transformers 4.56+: Decoder layer returns tensor, uses past_key_values (plural),
|
| 23 |
+
DynamicCache accepts config parameter
|
| 24 |
+
- transformers 5.0+: Has native create_bidirectional_mask in masking_utils
|
| 25 |
+
"""
|
| 26 |
+
|
| 27 |
+
import inspect
|
| 28 |
+
|
| 29 |
+
import torch
|
| 30 |
+
from transformers.cache_utils import Cache, DynamicCache
|
| 31 |
+
from transformers.modeling_outputs import BaseModelOutputWithPast
|
| 32 |
+
from transformers.models.llama.configuration_llama import LlamaConfig
|
| 33 |
+
from transformers.models.llama.modeling_llama import LlamaDecoderLayer, LlamaModel
|
| 34 |
+
from transformers.utils import logging
|
| 35 |
+
|
| 36 |
+
logger = logging.get_logger(__name__)
|
| 37 |
+
|
| 38 |
+
# Check if native create_bidirectional_mask exists (transformers >= 5.0)
|
| 39 |
+
try:
|
| 40 |
+
from transformers.masking_utils import create_bidirectional_mask
|
| 41 |
+
|
| 42 |
+
_HAS_NATIVE_BIDIRECTIONAL_MASK = True
|
| 43 |
+
except ImportError:
|
| 44 |
+
from transformers.modeling_attn_mask_utils import _prepare_4d_attention_mask
|
| 45 |
+
|
| 46 |
+
_HAS_NATIVE_BIDIRECTIONAL_MASK = False
|
| 47 |
+
|
| 48 |
+
# Detect API differences via introspection
|
| 49 |
+
_decoder_forward_params = inspect.signature(LlamaDecoderLayer.forward).parameters
|
| 50 |
+
_dynamic_cache_init_params = inspect.signature(DynamicCache.__init__).parameters
|
| 51 |
+
|
| 52 |
+
# past_key_value (singular) in < 4.56, past_key_values (plural) in >= 4.56
|
| 53 |
+
_USE_PLURAL_CACHE_PARAM = "past_key_values" in _decoder_forward_params
|
| 54 |
+
# DynamicCache accepts config parameter in >= 4.56
|
| 55 |
+
_DYNAMIC_CACHE_ACCEPTS_CONFIG = "config" in _dynamic_cache_init_params
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
class LlamaBidirectionalConfig(LlamaConfig):
|
| 59 |
+
"""Configuration for LlamaBidirectionalModel with pooling and temperature settings."""
|
| 60 |
+
|
| 61 |
+
model_type = "llama_bidirec"
|
| 62 |
+
|
| 63 |
+
def __init__(
|
| 64 |
+
self, pooling: str = "avg", temperature: float = 1.0, **kwargs
|
| 65 |
+
) -> None:
|
| 66 |
+
"""
|
| 67 |
+
Initialize bidirectional Llama configuration.
|
| 68 |
+
|
| 69 |
+
Args:
|
| 70 |
+
pooling: Pooling strategy for embeddings ("avg", "cls", "last", etc.)
|
| 71 |
+
temperature: Temperature scaling for embeddings
|
| 72 |
+
**kwargs: Additional arguments passed to LlamaConfig
|
| 73 |
+
"""
|
| 74 |
+
self.pooling = pooling
|
| 75 |
+
self.temperature = temperature
|
| 76 |
+
super().__init__(**kwargs)
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
class LlamaBidirectionalModel(LlamaModel):
|
| 80 |
+
"""
|
| 81 |
+
LlamaModel modified to use bidirectional (non-causal) attention.
|
| 82 |
+
|
| 83 |
+
In standard Llama, each token can only attend to previous tokens (causal attention).
|
| 84 |
+
This model removes that restriction, allowing each token to attend to all tokens
|
| 85 |
+
in the sequence, which is useful for embedding tasks.
|
| 86 |
+
|
| 87 |
+
The key modifications are:
|
| 88 |
+
1. Setting is_causal=False on all attention layers
|
| 89 |
+
2. Using a bidirectional attention mask instead of causal mask
|
| 90 |
+
"""
|
| 91 |
+
|
| 92 |
+
config_class = LlamaBidirectionalConfig
|
| 93 |
+
|
| 94 |
+
def __init__(self, config: LlamaConfig) -> None:
|
| 95 |
+
super().__init__(config)
|
| 96 |
+
for layer in self.layers:
|
| 97 |
+
layer.self_attn.is_causal = False
|
| 98 |
+
|
| 99 |
+
def _create_bidirectional_mask(
|
| 100 |
+
self,
|
| 101 |
+
input_embeds: torch.Tensor,
|
| 102 |
+
attention_mask: torch.Tensor | None,
|
| 103 |
+
) -> torch.Tensor | None:
|
| 104 |
+
"""
|
| 105 |
+
Create bidirectional attention mask.
|
| 106 |
+
|
| 107 |
+
Args:
|
| 108 |
+
input_embeds: Input embeddings tensor of shape (batch_size, seq_len, hidden_size)
|
| 109 |
+
attention_mask: Optional 2D attention mask of shape (batch_size, seq_len)
|
| 110 |
+
where 1 indicates tokens to attend to and 0 indicates masked tokens
|
| 111 |
+
|
| 112 |
+
Returns:
|
| 113 |
+
4D attention mask suitable for the attention implementation, or None
|
| 114 |
+
if no masking is needed
|
| 115 |
+
"""
|
| 116 |
+
if attention_mask is None:
|
| 117 |
+
return None
|
| 118 |
+
|
| 119 |
+
if _HAS_NATIVE_BIDIRECTIONAL_MASK:
|
| 120 |
+
return create_bidirectional_mask(
|
| 121 |
+
self.config,
|
| 122 |
+
input_embeds,
|
| 123 |
+
attention_mask=attention_mask,
|
| 124 |
+
)
|
| 125 |
+
|
| 126 |
+
# Fallback for transformers < 5.0 without create_bidirectional_mask
|
| 127 |
+
|
| 128 |
+
# Flash attention handles 2D masks internally; only pass mask if there
|
| 129 |
+
# are actually masked tokens (zeros), otherwise return None for efficiency
|
| 130 |
+
if getattr(self.config, "_attn_implementation", None) == "flash_attention_2":
|
| 131 |
+
has_masked_tokens = (attention_mask == 0).any()
|
| 132 |
+
return attention_mask if has_masked_tokens else None
|
| 133 |
+
|
| 134 |
+
return _prepare_4d_attention_mask(attention_mask, input_embeds.dtype)
|
| 135 |
+
|
| 136 |
+
def forward(
|
| 137 |
+
self,
|
| 138 |
+
input_ids: torch.LongTensor | None = None,
|
| 139 |
+
attention_mask: torch.Tensor | None = None,
|
| 140 |
+
position_ids: torch.LongTensor | None = None,
|
| 141 |
+
past_key_values: Cache | None = None,
|
| 142 |
+
inputs_embeds: torch.FloatTensor | None = None,
|
| 143 |
+
cache_position: torch.LongTensor | None = None,
|
| 144 |
+
use_cache: bool | None = None,
|
| 145 |
+
**kwargs,
|
| 146 |
+
) -> BaseModelOutputWithPast:
|
| 147 |
+
"""
|
| 148 |
+
Forward pass with bidirectional attention.
|
| 149 |
+
|
| 150 |
+
Args:
|
| 151 |
+
input_ids: Input token IDs of shape (batch_size, seq_len)
|
| 152 |
+
attention_mask: Attention mask of shape (batch_size, seq_len)
|
| 153 |
+
position_ids: Position IDs for rotary embeddings
|
| 154 |
+
past_key_values: Cached key/value states for incremental decoding
|
| 155 |
+
inputs_embeds: Pre-computed input embeddings (alternative to input_ids)
|
| 156 |
+
cache_position: Position indices for cache updates
|
| 157 |
+
use_cache: Whether to return cached key/value states
|
| 158 |
+
**kwargs: Additional arguments passed to decoder layers
|
| 159 |
+
|
| 160 |
+
Returns:
|
| 161 |
+
BaseModelOutputWithPast containing last_hidden_state and past_key_values
|
| 162 |
+
"""
|
| 163 |
+
if (input_ids is None) ^ (inputs_embeds is not None):
|
| 164 |
+
raise ValueError(
|
| 165 |
+
"You must specify exactly one of input_ids or inputs_embeds"
|
| 166 |
+
)
|
| 167 |
+
|
| 168 |
+
if inputs_embeds is None:
|
| 169 |
+
inputs_embeds = self.embed_tokens(input_ids)
|
| 170 |
+
|
| 171 |
+
# Initialize cache if needed
|
| 172 |
+
if use_cache and past_key_values is None:
|
| 173 |
+
if _DYNAMIC_CACHE_ACCEPTS_CONFIG:
|
| 174 |
+
past_key_values = DynamicCache(config=self.config)
|
| 175 |
+
else:
|
| 176 |
+
past_key_values = DynamicCache()
|
| 177 |
+
|
| 178 |
+
if cache_position is None:
|
| 179 |
+
past_seen_tokens = (
|
| 180 |
+
past_key_values.get_seq_length() if past_key_values is not None else 0
|
| 181 |
+
)
|
| 182 |
+
cache_position = torch.arange(
|
| 183 |
+
past_seen_tokens,
|
| 184 |
+
past_seen_tokens + inputs_embeds.shape[1],
|
| 185 |
+
device=inputs_embeds.device,
|
| 186 |
+
)
|
| 187 |
+
|
| 188 |
+
if position_ids is None:
|
| 189 |
+
position_ids = cache_position.unsqueeze(0)
|
| 190 |
+
|
| 191 |
+
bidirectional_mask = self._create_bidirectional_mask(
|
| 192 |
+
inputs_embeds, attention_mask
|
| 193 |
+
)
|
| 194 |
+
|
| 195 |
+
hidden_states = inputs_embeds
|
| 196 |
+
position_embeddings = self.rotary_emb(hidden_states, position_ids)
|
| 197 |
+
|
| 198 |
+
# Build decoder layer kwargs with correct cache parameter name
|
| 199 |
+
# (past_key_value in < 4.56, past_key_values in >= 4.56)
|
| 200 |
+
layer_kwargs = {
|
| 201 |
+
"attention_mask": bidirectional_mask,
|
| 202 |
+
"position_ids": position_ids,
|
| 203 |
+
"use_cache": use_cache,
|
| 204 |
+
"cache_position": cache_position,
|
| 205 |
+
"position_embeddings": position_embeddings,
|
| 206 |
+
}
|
| 207 |
+
if _USE_PLURAL_CACHE_PARAM:
|
| 208 |
+
layer_kwargs["past_key_values"] = past_key_values
|
| 209 |
+
else:
|
| 210 |
+
layer_kwargs["past_key_value"] = past_key_values
|
| 211 |
+
|
| 212 |
+
for decoder_layer in self.layers[: self.config.num_hidden_layers]:
|
| 213 |
+
layer_outputs = decoder_layer(hidden_states, **layer_kwargs)
|
| 214 |
+
|
| 215 |
+
# Decoder returns tuple in < 4.54, tensor in >= 4.54
|
| 216 |
+
if isinstance(layer_outputs, tuple):
|
| 217 |
+
hidden_states = layer_outputs[0]
|
| 218 |
+
else:
|
| 219 |
+
hidden_states = layer_outputs
|
| 220 |
+
|
| 221 |
+
hidden_states = self.norm(hidden_states)
|
| 222 |
+
|
| 223 |
+
return BaseModelOutputWithPast(
|
| 224 |
+
last_hidden_state=hidden_states,
|
| 225 |
+
past_key_values=past_key_values,
|
| 226 |
+
)
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b30479054f57d91bf9f76682ec2a3471a845142ba3430eb3bc146b31422dc008
|
| 3 |
+
size 2516761000
|
modules.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"idx": 0,
|
| 4 |
+
"name": "0",
|
| 5 |
+
"path": "",
|
| 6 |
+
"type": "sentence_transformers.base.modules.transformer.Transformer"
|
| 7 |
+
},
|
| 8 |
+
{
|
| 9 |
+
"idx": 1,
|
| 10 |
+
"name": "1",
|
| 11 |
+
"path": "1_Pooling",
|
| 12 |
+
"type": "sentence_transformers.sentence_transformer.modules.pooling.Pooling"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"idx": 2,
|
| 16 |
+
"name": "2",
|
| 17 |
+
"path": "2_Normalize",
|
| 18 |
+
"type": "sentence_transformers.sentence_transformer.modules.normalize.Normalize"
|
| 19 |
+
}
|
| 20 |
+
]
|
sentence_bert_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"transformer_task": "feature-extraction",
|
| 3 |
+
"modality_config": {
|
| 4 |
+
"text": {
|
| 5 |
+
"method": "forward",
|
| 6 |
+
"method_output_name": "last_hidden_state"
|
| 7 |
+
}
|
| 8 |
+
},
|
| 9 |
+
"module_output_name": "token_embeddings"
|
| 10 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2290cbd256f27c08f40dc569b63abf77f9d5b012514a1e2aabb589b63ba74ba
|
| 3 |
+
size 17210189
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<|begin_of_text|>",
|
| 4 |
+
"clean_up_tokenization_spaces": true,
|
| 5 |
+
"eos_token": "<|end_of_text|>",
|
| 6 |
+
"is_local": false,
|
| 7 |
+
"model_input_names": [
|
| 8 |
+
"input_ids",
|
| 9 |
+
"attention_mask"
|
| 10 |
+
],
|
| 11 |
+
"model_max_length": 2048,
|
| 12 |
+
"pad_token": "<|end_of_text|>",
|
| 13 |
+
"tokenizer_class": "TokenizersBackend"
|
| 14 |
+
}
|