andrijdavid / Meta-Llama-3-13B-Instruct

huggingface.co
Total runs: 9
24-hour runs: 0
7-day runs: 0
30-day runs: -3
Model's Last Updated: May 08 2024
text-generation

Introduction of Meta-Llama-3-13B-Instruct

Model Details of Meta-Llama-3-13B-Instruct

Meta-Llama-3-13B-Instruct

Meta-Llama-3-13B-Instruct is a meta-llama/Meta-Llama-3-8B-Instruct self-merge made with MergeKit .

Configuration

The following YAML configuration was used to produce this model:

slices:
- sources:
  - layer_range: [0, 16]
    model: meta-llama/Meta-Llama-3-8B-Instruct
- sources:
  - layer_range: [4, 24]
    model: meta-llama/Meta-Llama-3-8B-Instruct
- sources:
  - layer_range: [8, 31]
    model: meta-llama/Meta-Llama-3-8B-Instruct
merge_method: passthrough
dtype: float16
Usage
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "andrijdavid/Meta-Llama-3-13B-Instruct"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

messages = [
    {"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
    {"role": "user", "content": "Who are you?"},
]

input_ids = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    return_tensors="pt"
).to(model.device)

terminators = [
    tokenizer.eos_token_id,
    tokenizer.convert_tokens_to_ids("<|eot_id|>")
]

outputs = model.generate(
    input_ids,
    max_new_tokens=256,
    eos_token_id=terminators,
    do_sample=True,
    temperature=0.6,
    top_p=0.9,
)
response = outputs[0][input_ids.shape[-1]:]
print(tokenizer.decode(response, skip_special_tokens=True))

Runs of andrijdavid Meta-Llama-3-13B-Instruct on huggingface.co

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

More Information About Meta-Llama-3-13B-Instruct huggingface.co Model

More Meta-Llama-3-13B-Instruct license Visit here:

https://choosealicense.com/licenses/other

Meta-Llama-3-13B-Instruct huggingface.co

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

Meta-Llama-3-13B-Instruct huggingface.co Url

https://huggingface.co/andrijdavid/Meta-Llama-3-13B-Instruct

andrijdavid Meta-Llama-3-13B-Instruct online free

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

andrijdavid Meta-Llama-3-13B-Instruct online free url in huggingface.co:

https://huggingface.co/andrijdavid/Meta-Llama-3-13B-Instruct

Meta-Llama-3-13B-Instruct install

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

Meta-Llama-3-13B-Instruct install url in huggingface.co:

https://huggingface.co/andrijdavid/Meta-Llama-3-13B-Instruct

Url of Meta-Llama-3-13B-Instruct

Meta-Llama-3-13B-Instruct huggingface.co Url

Provider of Meta-Llama-3-13B-Instruct huggingface.co

andrijdavid
ORGANIZATIONS

Other API from andrijdavid

huggingface.co

Total runs: 28
Run Growth: -3
Growth Rate: -10.71%
Updated:February 04 2024