theprint / Code-Llama-Bagel-8B

huggingface.co
Total runs: 1.1K
24-hour runs: 22
7-day runs: 38
30-day runs: 269
Model's Last Updated: September 29 2024
text-generation

Introduction of Code-Llama-Bagel-8B

Model Details of Code-Llama-Bagel-8B

Code-Llama-Bagel-8B

Code-Llama-Bagel-8B is a merge of the following models using LazyMergekit :

🧩 Configuration
slices:
  - sources:
      - model: ajibawa-2023/Code-Llama-3-8B
        layer_range: [0, 32]
      - model: jondurbin/bagel-8b-v1.0
        layer_range: [0, 32]
merge_method: slerp
base_model: ajibawa-2023/Code-Llama-3-8B
parameters:
  t:
    - filter: self_attn
      value: [0, 0.5, 0.3, 0.7, 1]
    - filter: mlp
      value: [1, 0.5, 0.7, 0.3, 0]
    - value: 0.5
dtype: bfloat16
💻 Usage
!pip install -qU transformers accelerate

from transformers import AutoTokenizer
import transformers
import torch

model = "theprint/Code-Llama-Bagel-8B"
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 theprint Code-Llama-Bagel-8B on huggingface.co

1.1K
Total runs
22
24-hour runs
43
3-day runs
38
7-day runs
269
30-day runs

More Information About Code-Llama-Bagel-8B huggingface.co Model

More Code-Llama-Bagel-8B license Visit here:

https://choosealicense.com/licenses/llama3

Code-Llama-Bagel-8B huggingface.co

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

Code-Llama-Bagel-8B huggingface.co Url

https://huggingface.co/theprint/Code-Llama-Bagel-8B

theprint Code-Llama-Bagel-8B online free

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

theprint Code-Llama-Bagel-8B online free url in huggingface.co:

https://huggingface.co/theprint/Code-Llama-Bagel-8B

Code-Llama-Bagel-8B install

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

Code-Llama-Bagel-8B install url in huggingface.co:

https://huggingface.co/theprint/Code-Llama-Bagel-8B

Url of Code-Llama-Bagel-8B

Code-Llama-Bagel-8B huggingface.co Url

Provider of Code-Llama-Bagel-8B huggingface.co

theprint
ORGANIZATIONS

Other API from theprint

huggingface.co

Total runs: 66
Run Growth: -2
Growth Rate: -3.03%
Updated:November 03 2024