Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks
Paper • 1908.10084 • Published • 14
How to use borntobeignored/embeddinggemma_lora with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("borntobeignored/embeddinggemma_lora")
sentences = [
"What was Aon's total operating income for the year 2013, as reflected in the company's 2014 report?",
"consolidated other income ( expense ) items , net ._| | year ended december 31 ( in millions ) | 2015 | 2014 | 2013 |\n|---:|:-------------------------------------------------|:-----------------|:-----------------|:-----------------|\n| 0 | interest expense | $ -2702 ( 2702 ) | $ -2617 ( 2617 ) | $ -2574 ( 2574 ) |\n| 1 | investment income ( loss ) net | 81 | 296 | 576 |\n| 2 | equity in net income ( losses ) of investees net | -325 ( 325 ) | 97 | -86 ( 86 ) |\n| 3 | other income ( expense ) net | 320 | -215 ( 215 ) | -364 ( 364 ) |\n| 4 | total | $ -2626 ( 2626 ) | $ -2439 ( 2439 ) | $ -2448 ( 2448 ) |_interest expense interest expense increased in 2015 primarily due to an increase in our debt outstanding and $ 47 million of additional interest expense associated with the early redemption in june 2015 of our $ 750 million aggregate principal amount of 5.85% ( 5.85 % ) senior notes due november 2015 and our $ 1.0 billion aggregate principal amount of 5.90% ( 5.90 % ) senior notes due march 2016 .\ninterest expense increased in 2014 primarily due to the effect of our interest rate derivative financial instruments .\ninvestment income ( loss ) , net the change in investment income ( loss ) , net in 2015 was primarily due to a $ 154 million gain related to the sale of our shares of arris group common stock in 2014 .\nthe change in investment income ( loss ) , net in 2014 was primarily due to a $ 443 million gain related to the sale of our investment in clearwire corporation in 2013 .\nthe components of investment income ( loss ) , net are presented in a table in note 7 to comcast 2019s consolidated financial statements .\nequity in net income ( losses ) of investees , net the change in equity in net income ( losses ) of investees , net in 2015 was primarily due to twcc holding corp .\n( 201cthe weather channel 201d ) recording impairment charges related to goodwill .\nwe recorded expenses of $ 333 million in 2015 that represent nbcuniversal 2019s proportionate share of these impairment charges .\nthe change in 2015 was also due to an increase in our proportionate share of losses in hulu , llc ( 201chulu 201d ) , which were driven by hulu 2019s higher programming and marketing costs .\nin 2015 and 2014 , we recognized our pro- portionate share of losses of $ 106 million and $ 20 million , respectively , related to our investment in hulu .\nthe change in equity in net income ( losses ) of investees , net in 2014 was primarily due to $ 142 million of total equity losses recorded in 2013 attributable to our investment in hulu .\nin july 2013 , we entered into an agreement to provide capital contributions totaling $ 247 million to hulu , which we had previously accounted for as a cost method investment .\nthis represented an agreement to provide our first capital contribution to hulu since we acquired our interest in it as part of our acquisition of a controlling interest in nbcuniversal in 2011 ( the 201cnbcuniversal transaction 201d ) ; therefore , we began to apply the equity method of accounting for this investment .\nthe change in the method of accounting for this investment required us to recognize our propor- tionate share of hulu 2019s accumulated losses from the date of the nbcuniversal transaction through july 2013 .\nother income ( expense ) , net other income ( expense ) , net for 2015 included gains of $ 335 million on the sales of a business and an invest- ment , $ 240 million recorded on the settlement of a contingent consideration liability with general electric company ( 201cge 201d ) related to the acquisition of nbcuniversal , and $ 43 million related to an equity method investment .\nthese gains were partially offset by $ 236 million of expenses related to fair value adjustments to a contractual obligation .\nsee note 11 to comcast 2019s consolidated financial statements for additional information on this contractual obligation .\nother income ( expense ) , net for 2014 included a $ 27 million favorable settlement of a contingency related to the at&t broadband transaction in 2002 , which was more than offset by $ 208 million of expenses related to 61 comcast 2015 annual report on form 10-k .",
"page 15 of 100 shareholder return performance the line graph below compares the annual percentage change in ball corporation 2019s cumulative total shareholder return on its common stock with the cumulative total return of the dow jones containers & packaging index and the s&p composite 500 stock index for the five-year period ended december 31 , 2010 .\nit assumes $ 100 was invested on december 31 , 2005 , and that all dividends were reinvested .\nthe dow jones containers & packaging index total return has been weighted by market capitalization .\ntotal return analysis ._| | | 12/31/05 | 12/31/06 | 12/31/07 | 12/31/08 | 12/31/09 | 12/31/10 |\n|---:|:--------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------|\n| 0 | ball corporation | $ 100.00 | $ 110.86 | $ 115.36 | $ 107.58 | $ 134.96 | $ 178.93 |\n| 1 | dj containers & packaging index | $ 100.00 | $ 112.09 | $ 119.63 | $ 75.00 | $ 105.34 | $ 123.56 |\n| 2 | s&p 500 index | $ 100.00 | $ 115.80 | $ 122.16 | $ 76.96 | $ 97.33 | $ 111.99 |\n| 3 | copyright a9 2011 standard & poor 2019s a division of the mcgraw-hill companies inc . all rights reserved . ( www.researchdatagroup.com/s&p.htm ) | copyright a9 2011 standard & poor 2019s a division of the mcgraw-hill companies inc . all rights reserved . ( www.researchdatagroup.com/s&p.htm ) | copyright a9 2011 standard & poor 2019s a division of the mcgraw-hill companies inc . all rights reserved . ( www.researchdatagroup.com/s&p.htm ) | copyright a9 2011 standard & poor 2019s a division of the mcgraw-hill companies inc . all rights reserved . ( www.researchdatagroup.com/s&p.htm ) | copyright a9 2011 standard & poor 2019s a division of the mcgraw-hill companies inc . all rights reserved . ( www.researchdatagroup.com/s&p.htm ) | copyright a9 2011 standard & poor 2019s a division of the mcgraw-hill companies inc . all rights reserved . ( www.researchdatagroup.com/s&p.htm ) | copyright a9 2011 standard & poor 2019s a division of the mcgraw-hill companies inc . all rights reserved . ( www.researchdatagroup.com/s&p.htm ) |\n| 4 | copyright a9 2011 dow jones & company . all rights reserved . | copyright a9 2011 dow jones & company . all rights reserved . | copyright a9 2011 dow jones & company . all rights reserved . | copyright a9 2011 dow jones & company . all rights reserved . | copyright a9 2011 dow jones & company . all rights reserved . | copyright a9 2011 dow jones & company . all rights reserved . | copyright a9 2011 dow jones & company . all rights reserved . |_.",
"reinsurance commissions , fees and other revenue decreased 2% ( 2 % ) in 2014 reflecting a 1% ( 1 % ) unfavorable impact from foreign currency exchange rates and 1% ( 1 % ) decline in organic revenue growth due primarily to a significant unfavorable market impact in treaty , partially offset by net new business growth in treaty placements globally and growth in capital markets transactions and advisory business , as well as facultative placements .\noperating income operating income increased $ 108 million , or 7% ( 7 % ) , from 2013 to $ 1.6 billion in 2014 .\nin 2014 , operating income margins in this segment were 21.0% ( 21.0 % ) , an increase of 120 basis points from 19.8% ( 19.8 % ) in 2013 .\noperating margin improvement was driven by solid organic revenue growth , return on investments , expense discipline and savings related to the restructuring programs , partially offset by a $ 61 million unfavorable impact from foreign currency exchange rates .\nhr solutions ._| | years ended december 31 | 2014 | 2013 | 2012 |\n|---:|:--------------------------|:-----------------|:---------------|:---------------|\n| 0 | revenue | $ 4264 | $ 4057 | $ 3925 |\n| 1 | operating income | 485 | 318 | 289 |\n| 2 | operating margin | 11.4% ( 11.4 % ) | 7.8% ( 7.8 % ) | 7.4% ( 7.4 % ) |_our hr solutions segment generated approximately 35% ( 35 % ) of our consolidated total revenues in 2014 and provides a broad range of human capital services , as follows : 2022 retirement specializes in global actuarial services , defined contribution consulting , tax and erisa consulting , and pension administration .\n2022 compensation focuses on compensatory advisory/counsel including : compensation planning design , executive reward strategies , salary survey and benchmarking , market share studies and sales force effectiveness , with special expertise in the financial services and technology industries .\n2022 strategic human capital delivers advice to complex global organizations on talent , change and organizational effectiveness issues , including talent strategy and acquisition , executive on-boarding , performance management , leadership assessment and development , communication strategy , workforce training and change management .\n2022 investment consulting advises public and private companies , other institutions and trustees on developing and maintaining investment programs across a broad range of plan types , including defined benefit plans , defined contribution plans , endowments and foundations .\n2022 benefits administration applies our human resource expertise primarily through defined benefit ( pension ) , defined contribution ( 401 ( k ) ) , and health and welfare administrative services .\nour model replaces the resource-intensive processes once required to administer benefit plans with more efficient , effective , and less costly solutions .\n2022 exchanges is building and operating healthcare exchanges that provide employers with a cost effective alternative to traditional employee and retiree healthcare , while helping individuals select the insurance that best meets their needs .\n2022 human resource business processing outsourcing provides market-leading solutions to manage employee data ; administer benefits , payroll and other human resources processes ; and record and manage talent , workforce and other core human resource process transactions as well as other complementary services such as flexible spending , dependent audit and participant advocacy .\ndisruption in the global credit markets and the deterioration of the financial markets created significant uncertainty in the marketplace .\nweak economic conditions in many markets around the globe continued throughout 2014 and have adversely impacted our clients' financial condition and therefore the levels of business activities in the industries and geographies where we operate .\nwhile we believe that the majority of our practices are well positioned to manage through this time , these challenges are reducing demand for some of our services and putting continued pressure on the pricing of those services , which is having an adverse effect on our new business and results of operations. ."
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]This is a sentence-transformers model finetuned from unsloth/embeddinggemma-300m on the generator dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for retrieval.
SentenceTransformer(
(0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'max_seq_length': 8192, 'do_lower_case': False, 'architecture': 'PeftModelForFeatureExtraction'})
(1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', 'include_prompt': True})
(2): Dense({'in_features': 768, 'out_features': 3072, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'module_input_name': 'sentence_embedding', 'module_output_name': 'sentence_embedding'})
(3): Dense({'in_features': 3072, 'out_features': 768, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'module_input_name': 'sentence_embedding', 'module_output_name': 'sentence_embedding'})
(4): Normalize({})
)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("borntobeignored/embeddinggemma_lora")
# Run inference
queries = [
'What was the debt-to-equity ratio for Republic Services in 2017 based on the actual asset allocation of 70% debt securities and 30% equity securities as of December 31, 2017?',
]
documents = [
'republic services , inc .\nnotes to consolidated financial statements 2014 ( continued ) we determine the discount rate used in the measurement of our obligations based on a model that matches the timing and amount of expected benefit payments to maturities of high quality bonds priced as of the plan measurement date .\nwhen that timing does not correspond to a published high-quality bond rate , our model uses an expected yield curve to determine an appropriate current discount rate .\nthe yields on the bonds are used to derive a discount rate for the liability .\nthe term of our obligation , based on the expected retirement dates of our workforce , is approximately seven years .\nin developing our expected rate of return assumption , we have evaluated the actual historical performance and long-term return projections of the plan assets , which give consideration to the asset mix and the anticipated timing of the plan outflows .\nwe employ a total return investment approach whereby a mix of equity and fixed income investments are used to maximize the long-term return of plan assets for what we consider a prudent level of risk .\nthe intent of this strategy is to minimize plan expenses by outperforming plan liabilities over the long run .\nrisk tolerance is established through careful consideration of plan liabilities , plan funded status and our financial condition .\nthe investment portfolio contains a diversified blend of equity and fixed income investments .\nfurthermore , equity investments are diversified across u.s .\nand non-u.s .\nstocks as well as growth , value , and small and large capitalizations .\nderivatives may be used to gain market exposure in an efficient and timely manner ; however , derivatives may not be used to leverage the portfolio beyond the market value of the underlying investments .\ninvestment risk is measured and monitored on an ongoing basis through annual liability measurements , periodic asset and liability studies , and quarterly investment portfolio reviews .\nthe following table summarizes our target asset allocation for 2017 and actual asset allocation as of december 31 , 2017 and 2016 for our plan : target allocation actual allocation actual allocation ._| | | targetassetallocation | 2017actualassetallocation | 2016actualassetallocation |\n|---:|:------------------|:------------------------|:----------------------------|:----------------------------|\n| 0 | debt securities | 72% ( 72 % ) | 70% ( 70 % ) | 72% ( 72 % ) |\n| 1 | equity securities | 28 | 30 | 28 |\n| 2 | total | 100% ( 100 % ) | 100% ( 100 % ) | 100% ( 100 % ) |_for 2018 , the investment strategy for pension plan assets is to maintain a broadly diversified portfolio designed to achieve our target of an average long-term rate of return of 5.36% ( 5.36 % ) .\nwhile we believe we can achieve a long- term average return of 5.36% ( 5.36 % ) , we cannot be certain that the portfolio will perform to our expectations .\nassets are strategically allocated among debt and equity portfolios to achieve a diversification level that reduces fluctuations in investment returns .\nasset allocation target ranges and strategies are reviewed periodically with the assistance of an independent external consulting firm. .',
'note 17 .\naccumulated other comprehensive losses : pmi\'s accumulated other comprehensive losses , net of taxes , consisted of the following: ._| | ( losses ) earnings ( in millions ) | ( losses ) earnings 2015 | ( losses ) earnings 2014 | 2013 |\n|---:|:---------------------------------------------|:---------------------------|:---------------------------|:-----------------|\n| 0 | currency translation adjustments | $ -6129 ( 6129 ) | $ -3929 ( 3929 ) | $ -2207 ( 2207 ) |\n| 1 | pension and other benefits | -3332 ( 3332 ) | -3020 ( 3020 ) | -2046 ( 2046 ) |\n| 2 | derivatives accounted for as hedges | 59 | 123 | 63 |\n| 3 | total accumulated other comprehensive losses | $ -9402 ( 9402 ) | $ -6826 ( 6826 ) | $ -4190 ( 4190 ) |_reclassifications from other comprehensive earnings the movements in accumulated other comprehensive losses and the related tax impact , for each of the components above , that are due to current period activity and reclassifications to the income statement are shown on the consolidated statements of comprehensive earnings for the years ended december 31 , 2015 , 2014 , and 2013 .\nthe movement in currency translation adjustments for the year ended december 31 , 2013 , was also impacted by the purchase of the remaining shares of the mexican tobacco business .\nin addition , $ 1 million , $ 5 million and $ 12 million of net currency translation adjustment gains were transferred from other comprehensive earnings to marketing , administration and research costs in the consolidated statements of earnings for the years ended december 31 , 2015 , 2014 and 2013 , respectively , upon liquidation of subsidiaries .\nfor additional information , see note 13 .\nbenefit plans and note 15 .\nfinancial instruments for disclosures related to pmi\'s pension and other benefits and derivative financial instruments .\nnote 18 .\ncolombian investment and cooperation agreement : on june 19 , 2009 , pmi announced that it had signed an agreement with the republic of colombia , together with the departments of colombia and the capital district of bogota , to promote investment and cooperation with respect to the colombian tobacco market and to fight counterfeit and contraband tobacco products .\nthe investment and cooperation agreement provides $ 200 million in funding to the colombian governments over a 20-year period to address issues of mutual interest , such as combating the illegal cigarette trade , including the threat of counterfeit tobacco products , and increasing the quality and quantity of locally grown tobacco .\nas a result of the investment and cooperation agreement , pmi recorded a pre-tax charge of $ 135 million in the operating results of the latin america & canada segment during the second quarter of 2009 .\nat december 31 , 2015 and 2014 , pmi had $ 73 million and $ 71 million , respectively , of discounted liabilities associated with the colombian investment and cooperation agreement .\nthese discounted liabilities are primarily reflected in other long-term liabilities on the consolidated balance sheets and are expected to be paid through 2028 .\nnote 19 .\nrbh legal settlement : on july 31 , 2008 , rothmans inc .\n( "rothmans" ) announced the finalization of a cad 550 million settlement ( or approximately $ 540 million , based on the prevailing exchange rate at that time ) between itself and rothmans , benson & hedges inc .\n( "rbh" ) , on the one hand , and the government of canada and all 10 provinces , on the other hand .\nthe settlement resolved the royal canadian mounted police\'s investigation relating to products exported from canada by rbh during the 1989-1996 period .\nrothmans\' sole holding was a 60% ( 60 % ) interest in rbh .\nthe remaining 40% ( 40 % ) interest in rbh was owned by pmi. .',
"the aes corporation notes to consolidated financial statements december 31 , 2016 , 2015 , and 2014 the following table summarizes the company's redeemable stock of subsidiaries balances as of the periods indicated ( in millions ) : ._| | december 31, | 2016 | 2015 |\n|---:|:---------------------------------------|:-------|:-------|\n| 0 | ipalco common stock | $ 618 | $ 460 |\n| 1 | colon quotas ( 1 ) | 100 | 2014 |\n| 2 | ipl preferred stock | 60 | 60 |\n| 3 | other common stock | 4 | 2014 |\n| 4 | dpl preferred stock | 2014 | 18 |\n| 5 | total redeemable stock of subsidiaries | $ 782 | $ 538 |______________________________ ( 1 ) characteristics of quotas are similar to common stock .\ncolon 2014 during the year ended december 31 , 2016 , our partner in colon increased their ownership from 25% ( 25 % ) to 49.9% ( 49.9 % ) and made capital contributions of $ 106 million .\nany subsequent adjustments to allocate earnings and dividends to our partner , or measure the investment at fair value , will be classified as temporary equity each reporting period as it is probable that the shares will become redeemable .\nipl 2014 ipl had $ 60 million of cumulative preferred stock outstanding at december 31 , 2016 and 2015 , which represented five series of preferred stock .\nthe total annual dividend requirements were approximately $ 3 million at december 31 , 2016 and 2015 .\ncertain series of the preferred stock were redeemable solely at the option of the issuer at prices between $ 100 and $ 118 per share .\nholders of the preferred stock are entitled to elect a majority of ipl's board of directors if ipl has not paid dividends to its preferred stockholders for four consecutive quarters .\nbased on the preferred stockholders' ability to elect a majority of ipl's board of directors in this circumstance , the redemption of the preferred shares is considered to be not solely within the control of the issuer and the preferred stock is considered temporary equity .\ndpl 2014 dpl had $ 18 million of cumulative preferred stock outstanding as of december 31 , 2015 , which represented three series of preferred stock issued by dp&l , a wholly-owned subsidiary of dpl .\nthe dp&l preferred stock was redeemable at dp&l's option as determined by its board of directors at per-share redemption prices between $ 101 and $ 103 per share , plus cumulative preferred dividends .\nin addition , dp&l's amended articles of incorporation contained provisions that permitted preferred stockholders to elect members of the dp&l board of directors in the event that cumulative dividends on the preferred stock are in arrears in an aggregate amount equivalent to at least four full quarterly dividends .\nbased on the preferred stockholders' ability to elect members of dp&l's board of directors in this circumstance , the redemption of the preferred shares was considered to be not solely within the control of the issuer and the preferred stock was considered temporary equity .\nin september 2016 , it became probable that the preferred shares would become redeemable .\nas such , the company recorded an adjustment of $ 5 million to retained earnings to adjust the preferred shares to their redemption value of $ 23 million .\nin october 2016 , dp&l redeemed all of its preferred shares .\nupon redemption , the preferred shares were no longer outstanding and all rights of the holders thereof as shareholders of dp&l ceased to exist .\nipalco 2014 in february 2015 , cdpq purchased 15% ( 15 % ) of aes us investment , inc. , a wholly-owned subsidiary that owns 100% ( 100 % ) of ipalco , for $ 247 million , with an option to invest an additional $ 349 million in ipalco through 2016 in exchange for a 17.65% ( 17.65 % ) equity stake .\nin april 2015 , cdpq invested an additional $ 214 million in ipalco , which resulted in cdpq's combined direct and indirect interest in ipalco of 24.90% ( 24.90 % ) .\nas a result of these transactions , $ 84 million in taxes and transaction costs were recognized as a net decrease to equity .\nthe company also recognized an increase to additional paid-in capital and a reduction to retained earnings of 377 million for the excess of the fair value of the shares over their book value .\nno gain or loss was recognized in net income as the transaction was not considered to be a sale of in-substance real estate .\nin march 2016 , cdpq exercised its remaining option by investing $ 134 million in ipalco , which resulted in cdpq's combined direct and indirect interest in ipalco of 30% ( 30 % ) .\nthe company also recognized an increase to additional paid-in capital and a reduction to retained earnings of $ 84 million for the excess of the fair value of the shares over their book value .\nin june 2016 , cdpq contributed an additional $ 24 million to ipalco , with no impact to the ownership structure of the investment .\nany subsequent adjustments to allocate earnings and dividends to cdpq will be classified as nci within permanent equity as it is not probable that the shares will become redeemable. .",
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 768] [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[ 0.5397, -0.0544, 0.0456]])
InformationRetrievalEvaluator| Metric | Value |
|---|---|
| cosine_accuracy@1 | 0.2412 |
| cosine_accuracy@3 | 0.6206 |
| cosine_accuracy@5 | 0.7973 |
| cosine_accuracy@10 | 0.9049 |
| cosine_precision@5 | 0.1595 |
| cosine_precision@10 | 0.0905 |
| cosine_recall@5 | 0.7973 |
| cosine_recall@10 | 0.9049 |
| cosine_ndcg@10 | 0.5702 |
| cosine_mrr@10 | 0.4624 |
| cosine_map@100 | 0.4671 |
anchor and positive| anchor | positive | |
|---|---|---|
| type | string | string |
| modality | text | text |
| details |
|
|
| anchor | positive |
|---|---|
What was Analog Devices reported interest expense for fiscal year 2009, as listed in its annual report? |
interest rate to a variable interest rate based on the three-month libor plus 2.05% ( 2.05 % ) ( 2.34% ( 2.34 % ) as of october 31 , 2009 ) . |
During the fiscal year ended March 31, 2012, for Abiomed, Inc., did the stock-based compensation expense of $3.3 million for equity awards where prescribed performance milestones were achieved or deemed probable exceed the total fair value of restricted stock and restricted stock units vested during that year? |
abiomed , inc . |
What were the total operating expenses for American Airlines Group in 2018, as reflected in the table detailing annual aircraft fuel consumption and costs? |
the following table shows annual aircraft fuel consumption and costs , including taxes , for our mainline and regional operations for 2018 , 2017 and 2016 ( gallons and aircraft fuel expense in millions ) . |
MultipleNegativesRankingLoss with these parameters:{
"scale": 20.0,
"similarity_fct": "cos_sim",
"gather_across_devices": false,
"directions": [
"query_to_doc"
],
"partition_mode": "joint",
"hardness_mode": null,
"hardness_strength": 0.0
}
anchor and positive| anchor | positive | |
|---|---|---|
| type | string | string |
| modality | text | text |
| details |
|
|
| anchor | positive |
|---|---|
What was the average payment volume per transaction for American Express in 2007, based on its reported payments volume and total number of transactions? |
largest operators of open-loop and closed-loop retail electronic payments networks the largest operators of open-loop and closed-loop retail electronic payments networks are visa , mastercard , american express , discover , jcb and diners club . |
What was the percentage cumulative total return for Citi's common stock over the five-year period ended December 31, 2017, as reflected in the performance graph comparison? |
performance graph comparison of five-year cumulative total return the following graph and table compare the cumulative total return on citi 2019s common stock , which is listed on the nyse under the ticker symbol 201cc 201d and held by 65691 common stockholders of record as of january 31 , 2018 , with the cumulative total return of the s&p 500 index and the s&p financial index over the five-year period through december 31 , 2017 . |
What percentage of Devon Energy's estimated total oil and gas production in MMBOE for 2008 comes from Canadian operations, given that the total estimated production is 243 MMBOE and Canadian operations are estimated to produce 60 MMBOE? |
the acquisition date is on or after the beginning of the first annual reporting period beginning on or after december 15 , 2008 . |
MultipleNegativesRankingLoss with these parameters:{
"scale": 20.0,
"similarity_fct": "cos_sim",
"gather_across_devices": false,
"directions": [
"query_to_doc"
],
"partition_mode": "joint",
"hardness_mode": null,
"hardness_strength": 0.0
}
per_device_train_batch_size: 4gradient_accumulation_steps: 8learning_rate: 0.0002num_train_epochs: 1warmup_ratio: 0.1bf16: Truegradient_checkpointing: unslothoverwrite_output_dir: Falsedo_predict: Falseprediction_loss_only: Trueper_device_train_batch_size: 4per_device_eval_batch_size: 8per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_accumulation_steps: 8eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 0.0002weight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0num_train_epochs: 1max_steps: -1lr_scheduler_type: linearlr_scheduler_kwargs: {}warmup_ratio: 0.1warmup_steps: 0log_level: passivelog_level_replica: warninglog_on_each_node: Truelogging_nan_inf_filter: Truesave_safetensors: Truesave_on_each_node: Falsesave_only_model: Falserestore_callback_states_from_checkpoint: Falseno_cuda: Falseuse_cpu: Falseuse_mps_device: Falseseed: 42data_seed: Nonejit_mode_eval: Falseuse_ipex: Falsebf16: Truefp16: Falsefp16_opt_level: O1half_precision_backend: autobf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_rank: 0ddp_backend: Nonetpu_num_cores: Nonetpu_metrics_debug: Falsedebug: []dataloader_drop_last: Falsedataloader_num_workers: 0dataloader_prefetch_factor: Nonepast_index: -1disable_tqdm: Falseremove_unused_columns: Truelabel_names: Noneload_best_model_at_end: Falseignore_data_skip: Falsefsdp: []fsdp_min_num_params: 0fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}fsdp_transformer_layer_cls_to_wrap: Noneaccelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}parallelism_config: Nonedeepspeed: Nonelabel_smoothing_factor: 0.0optim: adamw_torch_fusedoptim_args: Noneadafactor: Falsegroup_by_length: Falselength_column_name: lengthddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falsedataloader_pin_memory: Truedataloader_persistent_workers: Falseskip_memory_metrics: Trueuse_legacy_prediction_loop: Falsepush_to_hub: Falseresume_from_checkpoint: Nonehub_model_id: Nonehub_strategy: every_savehub_private_repo: Nonehub_always_push: Falsehub_revision: Nonegradient_checkpointing: unslothgradient_checkpointing_kwargs: Noneinclude_inputs_for_metrics: Falseinclude_for_metrics: []eval_do_concat_batches: Truefp16_backend: autopush_to_hub_model_id: Nonepush_to_hub_organization: Nonemp_parameters: auto_find_batch_size: Falsefull_determinism: Falsetorchdynamo: Noneray_scope: lastddp_timeout: 1800torch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneinclude_tokens_per_second: Falseinclude_num_input_tokens_seen: Falseneftune_noise_alpha: Noneoptim_target_modules: Nonebatch_eval_metrics: Falseeval_on_start: Falseuse_liger_kernel: Falseliger_kernel_config: Noneeval_use_gather_object: Falseaverage_tokens_across_devices: Falseprompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}| Epoch | Step | Training Loss | cosine_ndcg@10 |
|---|---|---|---|
| -1 | -1 | - | 0.1117 |
| 0.2559 | 50 | 0.1109 | - |
| 0.5118 | 100 | 0.0218 | - |
| 0.7678 | 150 | 0.0112 | - |
| -1 | -1 | - | 0.5702 |
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
@misc{oord2019representationlearningcontrastivepredictive,
title={Representation Learning with Contrastive Predictive Coding},
author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
year={2019},
eprint={1807.03748},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1807.03748},
}
Base model
unsloth/embeddinggemma-300m