This model is an out-of-the-box ready version of the LLaMA-7B variant of
Landmark Attention
.
The original code is modified from the
Landmark GitHub
and the weights from
here
.
As a LLaMA variant, this model may be subject to the LLaMA license.
To use
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
import torch
tokenizer = AutoTokenizer.from_pretrained("emozilla/landmark-llama-7b", use_fast=False)
model = AutoModelForCausalLM.from_pretrained("emozilla/landmark-llama-7b", \
torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto")
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
print(pipe("Somebody once told me the world is gonna roll me", \
max_new_tokens=256, temperature=0.8, do_sample=True))
You can configure the Landmark parameters by editing
mem_freq
,
mem_top_k
,
mem_max_seq_len
, and
mem_max_cache_size
.
landmark-llama-7b huggingface.co is an AI model on huggingface.co that provides landmark-llama-7b's model effect (), which can be used instantly with this emozilla landmark-llama-7b model. huggingface.co supports a free trial of the landmark-llama-7b model, and also provides paid use of the landmark-llama-7b. Support call landmark-llama-7b model through api, including Node.js, Python, http.
landmark-llama-7b huggingface.co is an online trial and call api platform, which integrates landmark-llama-7b's modeling effects, including api services, and provides a free online trial of landmark-llama-7b, you can try landmark-llama-7b online for free by clicking the link below.
emozilla landmark-llama-7b online free url in huggingface.co:
landmark-llama-7b is an open source model from GitHub that offers a free installation service, and any user can find landmark-llama-7b on GitHub to install. At the same time, huggingface.co provides the effect of landmark-llama-7b install, users can directly use landmark-llama-7b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.