ajay141 / llama-qwen

huggingface.co
Total runs: 16
24-hour runs: 2
7-day runs: 1
30-day runs: 4
Model's Last Updated: March 27 2024
text-generation

Introduction of llama-qwen

Model Details of llama-qwen

llama-qwen

llama-qwen is a merge of the following models using LazyMergekit :

🧩 Configuration
slices:
  - sources:
      - model: togethercomputer/LLaMA-2-7B-32K
        layer_range: [0, 20]
      - model: Qwen/Qwen1.5-7B
        layer_range: [0, 20]
merge_method: slerp
base_model: togethercomputer/LLaMA-2-7B-32K
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 = "ajay141/llama-qwen"
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 ajay141 llama-qwen on huggingface.co

16
Total runs
2
24-hour runs
1
3-day runs
1
7-day runs
4
30-day runs

More Information About llama-qwen huggingface.co Model

llama-qwen huggingface.co

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

llama-qwen huggingface.co Url

https://huggingface.co/ajay141/llama-qwen

ajay141 llama-qwen online free

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

ajay141 llama-qwen online free url in huggingface.co:

https://huggingface.co/ajay141/llama-qwen

llama-qwen install

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

llama-qwen install url in huggingface.co:

https://huggingface.co/ajay141/llama-qwen

Url of llama-qwen

llama-qwen huggingface.co Url

Provider of llama-qwen huggingface.co

ajay141
ORGANIZATIONS

Other API from ajay141

huggingface.co

Total runs: 494
Run Growth: 298
Growth Rate: 74.69%
Updated:March 27 2024
huggingface.co

Total runs: 26
Run Growth: 6
Growth Rate: 24.00%
Updated:March 27 2024
huggingface.co

Total runs: 16
Run Growth: -2
Growth Rate: -12.50%
Updated:April 02 2024