Instructions to use Mr-Rosen/Accuracy-Is-Not-Enough-FinQA-QLoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Mr-Rosen/Accuracy-Is-Not-Enough-FinQA-QLoRA with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct") model = PeftModel.from_pretrained(base_model, "Mr-Rosen/Accuracy-Is-Not-Enough-FinQA-QLoRA") - Notebooks
- Google Colab
- Kaggle
| { | |
| "variant_id": "S2_financial_analyst_operation_reader", | |
| "family": "S", | |
| "description": "Prompt S: financial analyst translating questions into FinQA token-list programs.", | |
| "system_message": "You are a financial analyst that converts financial questions into FinQA calculation programs.", | |
| "instruction_text": "You are a financial analyst that converts financial questions into calculation programs. Read the context, identify the relevant numbers, and finish the answer after the final program: marker with only the FinQA JSON token list. The two examples show the required pattern.\n\n\nAllowed operation names:\nadd\nsubtract\nmultiply\ndivide\nexp\ngreater\ntable_sum\ntable_average\ntable_max\ntable_min\n\nWhen writing the answer after program:, use a FinQA JSON token list. The operation token includes the opening parenthesis, such as \"divide(\".\n\nExample1 - \"pre_text: shutdown. the customer, which primarily received products from the tonnage gases segment, filed for bankruptcy in may 2012 and announced the mill shutdown in august 2012. pension settlement loss our U.S. supplemental pension plan provides for a lump sum benefit payment option at the time of retirement, or for corporate officers, six months after the retirement date. pension settlements are recognized when cash payments exceed the sum of the service and interest cost components of net periodic pension cost of the plan for the fiscal year. the participant 2019s vested benefit is considered fully settled upon cash payment of the lump sum. we recognized $12.4 of settlement charges in 2013. advisory costs during the fourth quarter of 2013, we incurred legal and other advisory fees of $10.1 ($6.4 after-tax, or $.03 per share) in connection with our response to the rapid acquisition of a large position in shares of our common stock by pershing square capital management llc and its affiliates (pershing square). these fees, which are reflected on the consolidated income statements as 201cadvisory costs, 201d include costs incurred before and after pershing square 2019s disclosure of its holdings and cover advisory services related to the adoption of the shareholders rights plan, preparation for a potential proxy solicitation campaign, and entering into an agreement with pershing square. other income (expense), net items recorded to other income (expense), net arise from transactions and events not directly related to our principal income earning activities. the detail of other income (expense), net is presented in note 23, supplemental information, to the consolidated financial statements. 2013 vs. 2012 other income (expense), net of $70.2 increased $23.1, primarily due to higher gains from the sale of a number of small assets and investments and a favorable commercial contract settlement, partially offset by lower government grants. otherwise, no individual items were significant in comparison to the prior year. 2012 vs. 2011 other income (expense), net of $47.1 increased $5.4, primarily due to favorable foreign exchange and reimbursements from government grants for expense, partially offset by lower gains from the sale of assets. otherwise, no individual items were significant in comparison to the prior year. interest expense. table: 2013 2012 2011 | interest incurred $167.6$ 153.9 $138.2 | less : capitalized interest 25.8 30.2 22.7 | interest expense$ 141.8 $123.7$ 115.5 2013 vs. 2012 interest incurred increased $13.7. the increase was driven primarily by a higher average debt balance for $41, partially offset by a lower average interest rate on the debt portfolio of $24. the change in capitalized interest was driven by a decrease in project spending and a lower average interest rate. 2012 vs. 2011 interest incurred increased $15.7. the increase was driven primarily by a higher average debt balance and debt issuance costs related to the indura s.a. acquisition, partially offset by the impact of a stronger dollar on the translation of foreign currency interest. the change in capitalized interest was driven by an increase in project spending which qualified for capitalization. effective tax rate the effective tax rate equals the income tax provision divided by income from continuing operations before taxes. refer to note 22, income taxes, to the consolidated financial statements for details on factors affecting the effective tax rate. 2013 vs. 2012 on a gaap basis, the effective tax rate was 22.8% (22.8%) and 21.9% (21.9%) in 2013 and 2012, respectively. the current year rate includes income tax benefits of $73.7 related to the business restructuring and cost reduction plans and $3.7 for the advisory costs. the prior year rate includes income tax benefits of $105.0 related to the business restructuring and cost reduction plans, $58.3 related to the second quarter spanish tax ruling, and $3.7 related to the customer. what was the percentual increase of other income due to favorable foreign exchange and reimbursements in 2011? program:[\"divide(\", \"5.4\", \"47.1\", \")\", \"EOF\"]\"\n\nExample2 - \"note 6: inventories we use the last-in, first-out (lifo) method for the majority of our inventories located in the continental U.S. other inventories are valued by the first-in, first-out (fifo) method. fifo cost approximates current replacement cost. inventories measured using lifo must be valued at the lower of cost or market. inventories measured using fifo must be valued at the lower of cost or net realizable value. inventories at december 31 consisted of the following:.table: 2018 2017 | finished products $988.1$ 1211.4 | work in process 2628.2 2697.7 | raw materials and supplies 506.5 488.8 | total ( approximates replacement cost ) 4122.8 4397.9 | increase ( reduction ) to lifo cost -11.0 ( 11.0 ) 60.4 | inventories $4111.8$ 4458.3 inventories valued under the lifo method comprised $1.57 billion and $1.56 billion of total inventories at december 31, 2018 and 2017, respectively. note 7: financial instruments financial instruments that potentially subject us to credit risk consist principally of trade receivables and interest-bearing investments. wholesale distributors of life-science products account for a substantial portion of our trade receivables; collateral is generally not required. we seek to mitigate the risk associated with this concentration through our ongoing credit-review procedures and insurance. a large portion of our cash is held by a few major financial institutions. we monitor our exposures with these institutions and do not expect any of these institutions to fail to meet their obligations. major financial institutions represent the largest component of our investments in corporate debt securities. in accordance with documented corporate risk-management policies, we monitor the amount of credit exposure to any one financial institution or corporate issuer. we are exposed to credit-related losses in the event of nonperformance by counterparties to risk-management instruments but do not expect any counterparties to fail to meet their obligations given their high credit ratings. we consider all highly liquid investments with a maturity of three months or less from the date of purchase to be cash equivalents. the cost of these investments approximates fair value. our equity investments are accounted for using three different methods depending on the type of equity investment: 2022 investments in companies over which we have significant influence but not a controlling interest are accounted for using the equity method, with our share of earnings or losses reported in other-net, (income) expense. 2022 for equity investments that do not have readily determinable fair values, we measure these investments at cost, less any impairment, plus or minus changes resulting from observable price changes in orderly transactions for the identical or similar investment of the same issuer. any change in recorded value is recorded in other-net, (income) expense. 2022 our public equity investments are measured and carried at fair value. any change in fair value is recognized in other-net, (income) expense. we review equity investments other than public equity investments for indications of impairment on a regular basis. our derivative activities are initiated within the guidelines of documented corporate risk-management policies and are intended to offset losses and gains on the assets, liabilities, and transactions being hedged. management reviews the correlation and effectiveness of our derivatives on a quarterly basis.. what was the percent of the finished products to the total inventory? program:[\"divide(\", \"988.1\", \"4111.8\", \")\", \"EOF\"]\"\n\ninput:\n{passage}\n\nquestion: {question}\n\n program:" | |
| } | |