kevin009 / merge-bt1

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: January 02 2025
text-generation

Introduction of merge-bt1

Model Details of merge-bt1

Merged-Llama-Adapters-317-320

A merged LoRA adapter combining four fine-tuned adapters (317-320) for the Llama-3.1-8B language model.

Model Details
Merger Configuration
Source Adapters

All source adapters share the following configuration:

  • Rank (r): 16
  • Alpha: 16
  • Target Modules:
    • q_proj (Query projection)
    • k_proj (Key projection)
    • v_proj (Value projection)
    • o_proj (Output projection)
    • up_proj (Upsampling projection)
    • down_proj (Downsampling projection)
    • gate_proj (Gate projection)
Merger Details
  • Merger Method: Linear interpolation
  • Merger Weights: Equal weights (0.25) for each adapter
  • Combined Rank: 16 (maintained from source adapters)
Usage

This merged adapter must be used with the base Llama-3.1-8B-instruct model.

Loading the Model
# Initialize with first F32 model
peft_model = PeftModel.from_pretrained(model, "llama319", adapter_name="llama319")
# Load F32 models (higher precision)
peft_model.load_adapter("llama324", adapter_name="llama324")
peft_model.load_adapter("llama320", adapter_name="llama320")
peft_model.load_adapter("llama318", adapter_name="llama318")
peft_model.load_adapter("llama1720-base", adapter_name="llama1720-base")
peft_model.load_adapter("merge-17-20", adapter_name="merge-17-20")

adapters = ["llama319", "llama320", "llama1720-base", "merge-17-20", "llama324", "llama318"]
weights = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
peft_model.add_weighted_adapter(adapters, weights, "merge", combination_type="ties", density=0.2)

peft_model.set_adapter("merge")
peft_model.save_pretrained("merged")
Limitations and Biases
  • This merged adapter inherits limitations and biases from:
    • The base Llama-3.1-8B-instruct model
    • All four source adapters
  • The merging process may result in:
    • Potential loss of specialized capabilities from individual adapters
    • Averaged behavior across different adapter specializations
    • Possible interference between adapter weights
Merging Process

The adapters were merged using the following approach:

  1. Linear interpolation of adapter weights
  2. Equal weighting (0.25) applied to each source adapter
  3. Preservation of original LoRA rank and architecture
Method Used

The adapters were merged using PEFT (Parameter-Efficient Fine-Tuning) library's weighted adapter combination feature. The process combines multiple LoRA adapters using linear interpolation with specified weights.

Key Parameters
  • combination_type="ties" : Uses the TIES (Task Interference Edge Selection) method for combining adapters
  • density=0.2 : Controls the sparsity of the merged weights
Notes
  • The order of loading adapters may affect the final result
  • Equal weights were chosen to maintain balanced influence from each adapter
  • The merged adapter maintains the same architecture and rank as the original adapters
  • While this adapter merges multiple fine-tunes, each component was developed as part of independent research efforts to explore and language model capabilities as part of R&D process.
Datasets
  • Not yet released, but should be released after evaluation has completed.
  • Creating dataset alone tooks more than 3 month for creating 30k pairs dataset.
  • Only 1k pairs example considered to be synthetic dataset, the rest half synthetic and human written text.
Use Cases
  • This merged adapter can be used for a wide range of tasks, including but not limited to:
    • Accessibility
    • Revision & Editing
    • instruction-following use with xml tags
    • Thinking & reasoning with xml tag of and , if being asked i the instructions.

These Models not optimized for code, math, or other specialized tasks that need Perefence Optimization.

Why SFT Instead of RLHF/DPO?
  • RLHF and DPO approaches often lead to vocabulary limitations and overfitting due to their optimization objectives
Why Multiple Adapters?
  • Resource Issue: Placing the training into smaller adapters requires less GPU memory and compute time while gives more control over the training process.
  • Iterative Development: Each adapter can be developed and tested independently
  • Training Infrastructure: The complete fine-tuning process was conducted across multiple sessions, totaling over 100 hours on high-end GPUs (H100, H200, or L40s)
  • Flexibility: Multiple adapters allow for different combinations or weightings
License

Licensed under Apache 2.0 License.

This merged adapter is part of independent individual research work. While the code is open-source under the Apache 2.0 license, please note:

  • You are free to use, modify, and distribute this adapter following the Apache 2.0 license terms
  • This work is provided "as is" without warranties or conditions of any kind
  • This is an independent research project and not affiliated with any organization
  • Attribution is appreciated but not required
  • For full license details, see: https://www.apache.org/licenses/LICENSE-2.0

Runs of kevin009 merge-bt1 on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About merge-bt1 huggingface.co Model

More merge-bt1 license Visit here:

https://choosealicense.com/licenses/apache-2.0

merge-bt1 huggingface.co

merge-bt1 huggingface.co is an AI model on huggingface.co that provides merge-bt1's model effect (), which can be used instantly with this kevin009 merge-bt1 model. huggingface.co supports a free trial of the merge-bt1 model, and also provides paid use of the merge-bt1. Support call merge-bt1 model through api, including Node.js, Python, http.

kevin009 merge-bt1 online free

merge-bt1 huggingface.co is an online trial and call api platform, which integrates merge-bt1's modeling effects, including api services, and provides a free online trial of merge-bt1, you can try merge-bt1 online for free by clicking the link below.

kevin009 merge-bt1 online free url in huggingface.co:

https://huggingface.co/kevin009/merge-bt1

merge-bt1 install

merge-bt1 is an open source model from GitHub that offers a free installation service, and any user can find merge-bt1 on GitHub to install. At the same time, huggingface.co provides the effect of merge-bt1 install, users can directly use merge-bt1 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

merge-bt1 install url in huggingface.co:

https://huggingface.co/kevin009/merge-bt1

Url of merge-bt1

merge-bt1 huggingface.co Url

Provider of merge-bt1 huggingface.co

kevin009
ORGANIZATIONS

Other API from kevin009

huggingface.co

Total runs: 110
Run Growth: -90
Growth Rate: -81.82%
Updated:March 05 2024
huggingface.co

Total runs: 91
Run Growth: -110
Growth Rate: -120.88%
Updated:March 05 2024
huggingface.co

Total runs: 59
Run Growth: -66
Growth Rate: -111.86%
Updated:April 26 2024
huggingface.co

Total runs: 14
Run Growth: 2
Growth Rate: 14.29%
Updated:February 11 2024
huggingface.co

Total runs: 10
Run Growth: 0
Growth Rate: 0.00%
Updated:June 18 2024
huggingface.co

Total runs: 6
Run Growth: 4
Growth Rate: 66.67%
Updated:June 18 2024
huggingface.co

Total runs: 6
Run Growth: 4
Growth Rate: 66.67%
Updated:January 23 2025
huggingface.co

Total runs: 5
Run Growth: 1
Growth Rate: 20.00%
Updated:June 13 2024
huggingface.co

Total runs: 4
Run Growth: -1
Growth Rate: -25.00%
Updated:June 21 2024
huggingface.co

Total runs: 4
Run Growth: 1
Growth Rate: 25.00%
Updated:March 16 2025
huggingface.co

Total runs: 4
Run Growth: 1
Growth Rate: 25.00%
Updated:June 21 2024
huggingface.co

Total runs: 3
Run Growth: 1
Growth Rate: 33.33%
Updated:June 01 2024
huggingface.co

Total runs: 3
Run Growth: -1
Growth Rate: -33.33%
Updated:June 15 2024
huggingface.co

Total runs: 3
Run Growth: 1
Growth Rate: 33.33%
Updated:June 17 2024
huggingface.co

Total runs: 3
Run Growth: 1
Growth Rate: 33.33%
Updated:March 20 2025
huggingface.co

Total runs: 2
Run Growth: 0
Growth Rate: 0.00%
Updated:January 23 2025
huggingface.co

Total runs: 2
Run Growth: -3
Growth Rate: -150.00%
Updated:June 18 2024
huggingface.co

Total runs: 2
Run Growth: -1
Growth Rate: -50.00%
Updated:June 19 2024
huggingface.co

Total runs: 2
Run Growth: 0
Growth Rate: 0.00%
Updated:June 21 2024
huggingface.co

Total runs: 2
Run Growth: 1
Growth Rate: 50.00%
Updated:January 15 2024
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:June 18 2024
huggingface.co

Total runs: 1
Run Growth: -1
Growth Rate: -100.00%
Updated:June 18 2024
huggingface.co

Total runs: 1
Run Growth: -12
Growth Rate: -1200.00%
Updated:June 01 2024
huggingface.co

Total runs: 1
Run Growth: -4
Growth Rate: -400.00%
Updated:June 21 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 18 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 16 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 09 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 16 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 18 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 01 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 20 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 27 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 11 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 27 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 28 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 09 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 02 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 05 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 20 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 20 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 16 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 10 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 29 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 18 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 16 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 16 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 18 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 20 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 20 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 26 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 11 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 10 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 21 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 23 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 30 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 02 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 24 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 28 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 11 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 08 2025