!pip install -qU transformers accelerate
from transformers import AutoTokenizer
import transformers
import torch
model = "jsfs11/WONMSeverusDevilv2-TIES"
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 jsfs11 WONMSeverusDevilv2-TIES on huggingface.co
4
Total runs
0
24-hour runs
-1
3-day runs
0
7-day runs
0
30-day runs
More Information About WONMSeverusDevilv2-TIES huggingface.co Model
WONMSeverusDevilv2-TIES huggingface.co
WONMSeverusDevilv2-TIES huggingface.co is an AI model on huggingface.co that provides WONMSeverusDevilv2-TIES's model effect (), which can be used instantly with this jsfs11 WONMSeverusDevilv2-TIES model. huggingface.co supports a free trial of the WONMSeverusDevilv2-TIES model, and also provides paid use of the WONMSeverusDevilv2-TIES. Support call WONMSeverusDevilv2-TIES model through api, including Node.js, Python, http.
WONMSeverusDevilv2-TIES huggingface.co is an online trial and call api platform, which integrates WONMSeverusDevilv2-TIES's modeling effects, including api services, and provides a free online trial of WONMSeverusDevilv2-TIES, you can try WONMSeverusDevilv2-TIES online for free by clicking the link below.
jsfs11 WONMSeverusDevilv2-TIES online free url in huggingface.co:
WONMSeverusDevilv2-TIES is an open source model from GitHub that offers a free installation service, and any user can find WONMSeverusDevilv2-TIES on GitHub to install. At the same time, huggingface.co provides the effect of WONMSeverusDevilv2-TIES install, users can directly use WONMSeverusDevilv2-TIES installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
WONMSeverusDevilv2-TIES install url in huggingface.co: