mlabonne / NeuralMarcoro14-7B

huggingface.co
Total runs: 157
24-hour runs: 0
7-day runs: -36
30-day runs: -829
Model's Last Updated: March 04 2024
text-generation

Introduction of NeuralMarcoro14-7B

Model Details of NeuralMarcoro14-7B

NeuralMarcoro14-7B

This is a DPO fine-tuned version of mlabonne/Marcoro14-7B-slerp using the chatml_dpo_pairs preference dataset. It improves the performance of the model on Nous benchmark suite and the Open LLM Benchmark.

It is currently the best-performing 7B LLM on the Open LLM Leaderboard (08/01/24).

You can try it out in this Space (GGUF Q4_K_M).

⚡ Quantized models
🏆 Evaluation
Open LLM Leaderboard

Nous
Model AGIEval GPT4ALL TruthfulQA Bigbench Average
NeuralMarcoro14-7B 44.59 76.17 65.94 46.9 58.4
Marcoro14-7B-slerp 44.66 76.24 64.15 45.64 57.67
Change -0.07 -0.07 +1.79 +1.26 +0.73
🧩 Training hyperparameters

LoRA :

  • r=16
  • lora_alpha=16
  • lora_dropout=0.05
  • bias="none"
  • task_type="CAUSAL_LM"
  • target_modules=['k_proj', 'gate_proj', 'v_proj', 'up_proj', 'q_proj', 'o_proj', 'down_proj']

Training arguments :

  • per_device_train_batch_size=4
  • gradient_accumulation_steps=4
  • gradient_checkpointing=True
  • learning_rate=5e-5
  • lr_scheduler_type="cosine"
  • max_steps=200
  • optim="paged_adamw_32bit"
  • warmup_steps=100

DPOTrainer :

  • beta=0.1
  • max_prompt_length=1024
  • max_length=1536
💻 Usage
!pip install -qU transformers accelerate

from transformers import AutoTokenizer
import transformers
import torch

model = "mlabonne/NeuralMarcoro14-7B"
messages = [{"role": "user", "content": "What is a large language model?"}]

tokenizer = AutoTokenizer.from_pretrained(model)
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
pipeline = transformers.pipeline(
    "text-generation",
    model=model,
    torch_dtype=torch.float16,
    device_map="auto",
)

outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])

Runs of mlabonne NeuralMarcoro14-7B on huggingface.co

157
Total runs
0
24-hour runs
-6
3-day runs
-36
7-day runs
-829
30-day runs

More Information About NeuralMarcoro14-7B huggingface.co Model

More NeuralMarcoro14-7B license Visit here:

https://choosealicense.com/licenses/cc-by-nc-4.0

NeuralMarcoro14-7B huggingface.co

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

NeuralMarcoro14-7B huggingface.co Url

https://huggingface.co/mlabonne/NeuralMarcoro14-7B

mlabonne NeuralMarcoro14-7B online free

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

mlabonne NeuralMarcoro14-7B online free url in huggingface.co:

https://huggingface.co/mlabonne/NeuralMarcoro14-7B

NeuralMarcoro14-7B install

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

NeuralMarcoro14-7B install url in huggingface.co:

https://huggingface.co/mlabonne/NeuralMarcoro14-7B

Url of NeuralMarcoro14-7B

NeuralMarcoro14-7B huggingface.co Url

Provider of NeuralMarcoro14-7B huggingface.co

mlabonne
ORGANIZATIONS

Other API from mlabonne

huggingface.co

Total runs: 156
Run Growth: -18
Growth Rate: -11.54%
Updated:March 04 2024
huggingface.co

Total runs: 142
Run Growth: -7
Growth Rate: -4.70%
Updated:March 04 2024
huggingface.co

Total runs: 64
Run Growth: -8
Growth Rate: -12.50%
Updated:March 04 2024