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

[ad_1]

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:



[ad_2]

Read More: mpost.io

Tags: 128kapproachContextexpandingLLaMa2MetaverseTokensyarn
ADVERTISEMENT

Recent

VIRTUAL Rallies Ahead of First Ethereum-Based AI Agent Launch

VIRTUAL Rallies Ahead of First Ethereum-Based AI Agent Launch

June 15, 2025
Is it the future of finance?

Is it the future of finance?

June 15, 2025
U.S. Lawmakers Unveil CLARITY Act Regulating Digital Assets

U.S. Lawmakers Unveil CLARITY Act Regulating Digital Assets

June 10, 2025

Categories

  • Bitcoin (4,166)
  • Blockchain (10,030)
  • Crypto (7,957)
  • Dark Web (321)
  • DeFi (7,749)
  • Ethereum (4,151)
  • Metaverse (5,986)
  • Monero (180)
  • NFT (674)
  • Solana (4,780)
  • Web3 (18,746)
  • Zcash (426)

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

    VIRTUAL Rallies Ahead of First Ethereum-Based AI Agent Launch

    VIRTUAL Rallies Ahead of First Ethereum-Based AI Agent Launch

    June 15, 2025
    Is it the future of finance?

    Is it the future of finance?

    June 15, 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) $ 103,112.00
    • ethereumEthereum (ETH) $ 2,393.40
    • tetherTether (USDT) $ 1.00
    • xrpXRP (XRP) $ 2.11
    • bnbBNB (BNB) $ 640.98
    • solanaSolana (SOL) $ 139.11
    • usd-coinUSDC (USDC) $ 0.999804
    • tronTRON (TRX) $ 0.273377
    • dogecoinDogecoin (DOGE) $ 0.161802
    • staked-etherLido Staked Ether (STETH) $ 2,395.16
    • cardanoCardano (ADA) $ 0.574108
    • wrapped-bitcoinWrapped Bitcoin (WBTC) $ 103,089.00
    • hyperliquidHyperliquid (HYPE) $ 33.44
    • wrapped-stethWrapped stETH (WSTETH) $ 2,883.54
    • bitcoin-cashBitcoin Cash (BCH) $ 474.36
    • suiSui (SUI) $ 2.70
    • chainlinkChainlink (LINK) $ 12.42
    • leo-tokenLEO Token (LEO) $ 8.88
    • stellarStellar (XLM) $ 0.241309
    • avalanche-2Avalanche (AVAX) $ 17.31
    • the-open-networkToncoin (TON) $ 2.94
    • usdsUSDS (USDS) $ 0.999767
    • whitebitWhiteBIT Coin (WBT) $ 48.95
    • shiba-inuShiba Inu (SHIB) $ 0.000011
    • binance-bridged-usdt-bnb-smart-chainBinance Bridged USDT (BNB Smart Chain) (BSC-USD) $ 1.00
    • wethWETH (WETH) $ 2,395.28
    • litecoinLitecoin (LTC) $ 82.69
    • wrapped-eethWrapped eETH (WEETH) $ 2,561.54
    • hedera-hashgraphHedera (HBAR) $ 0.143878
    • moneroMonero (XMR) $ 312.92
    • ethena-usdeEthena USDe (USDE) $ 1.00
    • polkadotPolkadot (DOT) $ 3.42
    • bitget-tokenBitget Token (BGB) $ 4.24
    • coinbase-wrapped-btcCoinbase Wrapped BTC (CBBTC) $ 103,195.00
    • uniswapUniswap (UNI) $ 7.02
    • pepePepe (PEPE) $ 0.000010
    • pi-networkPi Network (PI) $ 0.537027
    • aaveAave (AAVE) $ 246.31
    • daiDai (DAI) $ 0.999567
    • ethena-staked-usdeEthena Staked USDe (SUSDE) $ 1.18
    • okbOKB (OKB) $ 51.84
    • bittensorBittensor (TAO) $ 339.13
    • blackrock-usd-institutional-digital-liquidity-fundBlackRock USD Institutional Digital Liquidity Fund (BUIDL) $ 1.00
    • aptosAptos (APT) $ 4.25
    • crypto-com-chainCronos (CRO) $ 0.087576
    • internet-computerInternet Computer (ICP) $ 4.90
    • susdssUSDS (SUSDS) $ 1.06
    • nearNEAR Protocol (NEAR) $ 2.06
    • jito-staked-solJito Staked SOL (JITOSOL) $ 168.71
    • ethereum-classicEthereum Classic (ETC) $ 16.04
    • bitcoinBitcoin (BTC) $ 103,112.00
    • ethereumEthereum (ETH) $ 2,393.40
    • tetherTether (USDT) $ 1.00
    • xrpXRP (XRP) $ 2.11
    • bnbBNB (BNB) $ 640.98
    • solanaSolana (SOL) $ 139.11
    • usd-coinUSDC (USDC) $ 0.999804
    • tronTRON (TRX) $ 0.273377
    • dogecoinDogecoin (DOGE) $ 0.161802
    • staked-etherLido Staked Ether (STETH) $ 2,395.16
    • cardanoCardano (ADA) $ 0.574108
    • wrapped-bitcoinWrapped Bitcoin (WBTC) $ 103,089.00
    • hyperliquidHyperliquid (HYPE) $ 33.44
    • wrapped-stethWrapped stETH (WSTETH) $ 2,883.54
    • bitcoin-cashBitcoin Cash (BCH) $ 474.36
    • suiSui (SUI) $ 2.70
    • chainlinkChainlink (LINK) $ 12.42
    • leo-tokenLEO Token (LEO) $ 8.88
    • stellarStellar (XLM) $ 0.241309
    • avalanche-2Avalanche (AVAX) $ 17.31
    • the-open-networkToncoin (TON) $ 2.94
    • usdsUSDS (USDS) $ 0.999767
    • whitebitWhiteBIT Coin (WBT) $ 48.95
    • shiba-inuShiba Inu (SHIB) $ 0.000011
    • binance-bridged-usdt-bnb-smart-chainBinance Bridged USDT (BNB Smart Chain) (BSC-USD) $ 1.00
    • wethWETH (WETH) $ 2,395.28
    • litecoinLitecoin (LTC) $ 82.69
    • wrapped-eethWrapped eETH (WEETH) $ 2,561.54
    • hedera-hashgraphHedera (HBAR) $ 0.143878
    • moneroMonero (XMR) $ 312.92
    • ethena-usdeEthena USDe (USDE) $ 1.00
    • polkadotPolkadot (DOT) $ 3.42
    • bitget-tokenBitget Token (BGB) $ 4.24
    • coinbase-wrapped-btcCoinbase Wrapped BTC (CBBTC) $ 103,195.00
    • uniswapUniswap (UNI) $ 7.02
    • pepePepe (PEPE) $ 0.000010
    • pi-networkPi Network (PI) $ 0.537027
    • aaveAave (AAVE) $ 246.31
    • daiDai (DAI) $ 0.999567
    • ethena-staked-usdeEthena Staked USDe (SUSDE) $ 1.18
    • okbOKB (OKB) $ 51.84
    • bittensorBittensor (TAO) $ 339.13
    • blackrock-usd-institutional-digital-liquidity-fundBlackRock USD Institutional Digital Liquidity Fund (BUIDL) $ 1.00
    • aptosAptos (APT) $ 4.25
    • crypto-com-chainCronos (CRO) $ 0.087576
    • internet-computerInternet Computer (ICP) $ 4.90
    • susdssUSDS (SUSDS) $ 1.06
    • nearNEAR Protocol (NEAR) $ 2.06
    • jito-staked-solJito Staked SOL (JITOSOL) $ 168.71
    • ethereum-classicEthereum Classic (ETC) $ 16.04