Altszn.com
  • Home
  • Crypto
    • Altcoins
    • Bitcoin
    • Ethereum
    • Monero
    • XRP
    • Zcash
  • Web3
  • DeFi
  • NFTs
No Result
View All Result
Altszn.com
  • Home
  • Crypto
    • Altcoins
    • Bitcoin
    • Ethereum
    • Monero
    • XRP
    • Zcash
  • Web3
  • DeFi
  • NFTs
No Result
View All Result
Altszn.com
No Result
View All Result

YaRN: New Approach to Expanding Context in LLaMa-2 Up to 128k Tokens

Altszn.com by Altszn.com
September 4, 2023
in Metaverse, Web3
0
YaRN: New Approach to Expanding Context in LLaMa-2 Up to 128k Tokens
399
SHARES
2.3k
VIEWS
Share on FacebookShare on Twitter


A new method known as YaRN (Yet Another RoPE for Transformers) has emerged, offering the potential to extend context capabilities in large language models (LLMs) using the RoPE technique for positional coding. This approach, as detailed in a recent article, provides the means to expand context up to 64k or even 128k tokens. This innovation is particularly notable as it addresses the growing demand for models that can accommodate substantial context, such as extended texts or lengthy message histories.

YaRN: New Approach to Expanding Context in LLaMa-2 Up to 128k Tokens
Credit: Metaverse Post

Published: 4 September 2023, 9:30 am Updated: 04 Sep 2023, 9:31 am

The RoPE method involves rotating vectors in space at specific angles based on their positions, and is particularly used in models like LLaMa-2. The YaRN method differs from earlier modifications, though, by adding a brand-new component: a temperature parameter that is crucial in affecting how quickly people pay attention after the softmax operation. This integration of temperature control is significant because it keeps the attention mechanisms’ original structure and prevents the need for significant changes to the existing codebase.

An intriguing aspect of YaRN’s implementation is its adaptability with existing models hosted on platforms like Hugging Face. By harnessing the power of these readily available models, researchers and practitioners can experiment with and explore the YaRN method with relative ease.

Developers released Llama 2 variants tuned with YaRN at 64K and 128K context window lengths, respectively. They can be found on Hugging Face under the Llama 2 licence.

It is worth noting that YaRN, like other novel techniques, requires retraining on data containing extended contexts, albeit in a modest quantity—approximately 0.1% of the pretraining data. The primary consideration moving forward pertains to the computational resources necessary for efficiently inferring with these expanded-context models, an aspect that will play a pivotal role in the practical implementation of this innovative approach.

  • YaRN opens the door to more extensive contextual understanding, offering applications that span various domains, from literature analysis to conversational AI. As the AI community continues to explore methods for enhancing model capabilities, YaRN’s nuanced approach to extending context holds the potential to provide valuable insights and improved performance in various natural language processing tasks.
  • In July, Meta has released LLaMa-2-Chat models, a game-changing open-source language model with 70 billion parameters, comparable to and outperforming GPT-3.5 on certain benchmarks. The model is commercially friendly, pretrained on 2T tokens, and has strong MMLU scores. It is the first model of its size fine-tuned using RLHF, making it completely free for commercial use. LLaMa-2-Chat showcases exceptional performance on mathematical problems and is available in various sizes.

Read more about AI:





Read More: mpost.io

Tags: 128kapproachContextexpandingLLaMa2MetaverseTokensyarn
ADVERTISEMENT

Recent

WLFI Sends Cease-And-Desist Letter Over Trump Wallet

WLFI Sends Cease-And-Desist Letter Over Trump Wallet

June 5, 2025
Zebec Enhances KYC and AML Compliance Stack with Gatenox Acquisition

Zebec Enhances KYC and AML Compliance Stack with Gatenox Acquisition

June 5, 2025
Safe Unveils New Unit to Build Enterprise Ethereum Wallets

Safe Unveils New Unit to Build Enterprise Ethereum Wallets

June 5, 2025

Categories

  • Bitcoin (4,454)
  • Blockchain (10,620)
  • Crypto (8,560)
  • Dark Web (422)
  • DeFi (8,023)
  • Ethereum (4,470)
  • Metaverse (6,637)
  • Monero (236)
  • NFT (1,005)
  • Solana (4,877)
  • Web3 (19,612)
  • Zcash (454)

Category

Select Category

    Advertise

    Advertise your site, company or product to millions of web3, NFT and cryptocurrency enthusiasts. Learn more

    Useful Links

    Advertise
    DMCA
    Contact Us
    Privacy Policy
    Shipping & Returns
    Terms of Use

    Resources

    Exchanges
    Changelly
    Web3 Jobs

    Recent News

    WLFI Sends Cease-And-Desist Letter Over Trump Wallet

    WLFI Sends Cease-And-Desist Letter Over Trump Wallet

    June 5, 2025
    Zebec Enhances KYC and AML Compliance Stack with Gatenox Acquisition

    Zebec Enhances KYC and AML Compliance Stack with Gatenox Acquisition

    June 5, 2025

    © 2022 Altszn.com. All Rights Reserved.

    No Result
    View All Result
    • Home
      • Home – Layout 1
      • Home – Layout 2
      • Home – Layout 3

    © Altszn.com. All Rights Reserved.

    • bitcoinBitcoin (BTC) $ 101,254.00
    • ethereumEthereum (ETH) $ 2,422.52
    • tetherTether (USDT) $ 1.00
    • xrpXRP (XRP) $ 2.09
    • bnbBNB (BNB) $ 633.15
    • solanaSolana (SOL) $ 143.77
    • usd-coinUSDC (USDC) $ 0.999791
    • dogecoinDogecoin (DOGE) $ 0.170638
    • tronTRON (TRX) $ 0.267527
    • cardanoCardano (ADA) $ 0.625980
    • staked-etherLido Staked Ether (STETH) $ 2,421.23
    • wrapped-bitcoinWrapped Bitcoin (WBTC) $ 101,309.00
    • hyperliquidHyperliquid (HYPE) $ 33.69
    • wrapped-stethWrapped stETH (WSTETH) $ 2,912.35
    • suiSui (SUI) $ 2.95
    • chainlinkChainlink (LINK) $ 12.90
    • leo-tokenLEO Token (LEO) $ 8.73
    • stellarStellar (XLM) $ 0.256196
    • avalanche-2Avalanche (AVAX) $ 18.72
    • bitcoin-cashBitcoin Cash (BCH) $ 382.98
    • the-open-networkToncoin (TON) $ 3.05
    • usdsUSDS (USDS) $ 0.999711
    • shiba-inuShiba Inu (SHIB) $ 0.000012
    • hedera-hashgraphHedera (HBAR) $ 0.159064
    • wethWETH (WETH) $ 2,423.98
    • litecoinLitecoin (LTC) $ 83.11
    • wrapped-eethWrapped eETH (WEETH) $ 2,589.21
    • binance-bridged-usdt-bnb-smart-chainBinance Bridged USDT (BNB Smart Chain) (BSC-USD) $ 1.00
    • ethena-usdeEthena USDe (USDE) $ 1.00
    • polkadotPolkadot (DOT) $ 3.81
    • moneroMonero (XMR) $ 314.07
    • bitget-tokenBitget Token (BGB) $ 4.55
    • coinbase-wrapped-btcCoinbase Wrapped BTC (CBBTC) $ 101,327.00
    • pi-networkPi Network (PI) $ 0.613039
    • pepePepe (PEPE) $ 0.000011
    • whitebitWhiteBIT Coin (WBT) $ 30.98
    • aaveAave (AAVE) $ 243.62
    • uniswapUniswap (UNI) $ 5.89
    • daiDai (DAI) $ 0.999967
    • ethena-staked-usdeEthena Staked USDe (SUSDE) $ 1.18
    • bittensorBittensor (TAO) $ 354.31
    • okbOKB (OKB) $ 49.89
    • crypto-com-chainCronos (CRO) $ 0.097605
    • blackrock-usd-institutional-digital-liquidity-fundBlackRock USD Institutional Digital Liquidity Fund (BUIDL) $ 1.00
    • aptosAptos (APT) $ 4.48
    • nearNEAR Protocol (NEAR) $ 2.25
    • jito-staked-solJito Staked SOL (JITOSOL) $ 173.30
    • susdssUSDS (SUSDS) $ 1.05
    • internet-computerInternet Computer (ICP) $ 4.89
    • ethereum-classicEthereum Classic (ETC) $ 16.28
    • bitcoinBitcoin (BTC) $ 101,254.00
    • ethereumEthereum (ETH) $ 2,422.52
    • tetherTether (USDT) $ 1.00
    • xrpXRP (XRP) $ 2.09
    • bnbBNB (BNB) $ 633.15
    • solanaSolana (SOL) $ 143.77
    • usd-coinUSDC (USDC) $ 0.999791
    • dogecoinDogecoin (DOGE) $ 0.170638
    • tronTRON (TRX) $ 0.267527
    • cardanoCardano (ADA) $ 0.625980
    • staked-etherLido Staked Ether (STETH) $ 2,421.23
    • wrapped-bitcoinWrapped Bitcoin (WBTC) $ 101,309.00
    • hyperliquidHyperliquid (HYPE) $ 33.69
    • wrapped-stethWrapped stETH (WSTETH) $ 2,912.35
    • suiSui (SUI) $ 2.95
    • chainlinkChainlink (LINK) $ 12.90
    • leo-tokenLEO Token (LEO) $ 8.73
    • stellarStellar (XLM) $ 0.256196
    • avalanche-2Avalanche (AVAX) $ 18.72
    • bitcoin-cashBitcoin Cash (BCH) $ 382.98
    • the-open-networkToncoin (TON) $ 3.05
    • usdsUSDS (USDS) $ 0.999711
    • shiba-inuShiba Inu (SHIB) $ 0.000012
    • hedera-hashgraphHedera (HBAR) $ 0.159064
    • wethWETH (WETH) $ 2,423.98
    • litecoinLitecoin (LTC) $ 83.11
    • wrapped-eethWrapped eETH (WEETH) $ 2,589.21
    • binance-bridged-usdt-bnb-smart-chainBinance Bridged USDT (BNB Smart Chain) (BSC-USD) $ 1.00
    • ethena-usdeEthena USDe (USDE) $ 1.00
    • polkadotPolkadot (DOT) $ 3.81
    • moneroMonero (XMR) $ 314.07
    • bitget-tokenBitget Token (BGB) $ 4.55
    • coinbase-wrapped-btcCoinbase Wrapped BTC (CBBTC) $ 101,327.00
    • pi-networkPi Network (PI) $ 0.613039
    • pepePepe (PEPE) $ 0.000011
    • whitebitWhiteBIT Coin (WBT) $ 30.98
    • aaveAave (AAVE) $ 243.62
    • uniswapUniswap (UNI) $ 5.89
    • daiDai (DAI) $ 0.999967
    • ethena-staked-usdeEthena Staked USDe (SUSDE) $ 1.18
    • bittensorBittensor (TAO) $ 354.31
    • okbOKB (OKB) $ 49.89
    • crypto-com-chainCronos (CRO) $ 0.097605
    • blackrock-usd-institutional-digital-liquidity-fundBlackRock USD Institutional Digital Liquidity Fund (BUIDL) $ 1.00
    • aptosAptos (APT) $ 4.48
    • nearNEAR Protocol (NEAR) $ 2.25
    • jito-staked-solJito Staked SOL (JITOSOL) $ 173.30
    • susdssUSDS (SUSDS) $ 1.05
    • internet-computerInternet Computer (ICP) $ 4.89
    • ethereum-classicEthereum Classic (ETC) $ 16.28