Aleph-Alpha / Pharia-1-LLM-7B-control-aligned-hf

huggingface.co
Total runs: 252
24-hour runs: 0
7-day runs: -5
30-day runs: -5
Model's Last Updated: November 30 2024
text-generation

Introduction of Pharia-1-LLM-7B-control-aligned-hf

Model Details of Pharia-1-LLM-7B-control-aligned-hf

This is the safetensors-conversion of Pharia-1-LLM-7B-control-aligned . We provide a joint model card for Pharia-1-LLM-7B-control and Pharia-1-LLM-control-aligned . Find this model card here .

Usage

import torch

from transformers import AutoModelForCausalLM, PreTrainedTokenizerFast


INPUT = """<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful assistant. You give engaging, well-structured answers to user inquiries.<|eot_id|><|start_header_id|>user<|end_header_id|>

When was Rome founded?<|eot_id|><|start_header_id|>assistant<|end_header_id|>


"""

MODEL_ID = "Aleph-Alpha/Pharia-1-LLM-7B-control-aligned-hf"

tokenizer = PreTrainedTokenizerFast.from_pretrained(MODEL_ID)
model = AutoModelForCausalLM.from_pretrained(MODEL_ID, trust_remote_code=True, torch_dtype=torch.bfloat16)

device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
model = model.to(device)

inputs = tokenizer(INPUT, return_token_type_ids=False, return_tensors="pt").to(device)
outputs = model.generate(**inputs, max_new_tokens=50)
generated_text = tokenizer.decode(outputs[0])
print(generated_text)

Runs of Aleph-Alpha Pharia-1-LLM-7B-control-aligned-hf on huggingface.co

252
Total runs
0
24-hour runs
-2
3-day runs
-5
7-day runs
-5
30-day runs

More Information About Pharia-1-LLM-7B-control-aligned-hf huggingface.co Model

More Pharia-1-LLM-7B-control-aligned-hf license Visit here:

https://choosealicense.com/licenses/open-aleph-license

Pharia-1-LLM-7B-control-aligned-hf huggingface.co

Pharia-1-LLM-7B-control-aligned-hf huggingface.co is an AI model on huggingface.co that provides Pharia-1-LLM-7B-control-aligned-hf's model effect (), which can be used instantly with this Aleph-Alpha Pharia-1-LLM-7B-control-aligned-hf model. huggingface.co supports a free trial of the Pharia-1-LLM-7B-control-aligned-hf model, and also provides paid use of the Pharia-1-LLM-7B-control-aligned-hf. Support call Pharia-1-LLM-7B-control-aligned-hf model through api, including Node.js, Python, http.

Pharia-1-LLM-7B-control-aligned-hf huggingface.co Url

https://huggingface.co/Aleph-Alpha/Pharia-1-LLM-7B-control-aligned-hf

Aleph-Alpha Pharia-1-LLM-7B-control-aligned-hf online free

Pharia-1-LLM-7B-control-aligned-hf huggingface.co is an online trial and call api platform, which integrates Pharia-1-LLM-7B-control-aligned-hf's modeling effects, including api services, and provides a free online trial of Pharia-1-LLM-7B-control-aligned-hf, you can try Pharia-1-LLM-7B-control-aligned-hf online for free by clicking the link below.

Aleph-Alpha Pharia-1-LLM-7B-control-aligned-hf online free url in huggingface.co:

https://huggingface.co/Aleph-Alpha/Pharia-1-LLM-7B-control-aligned-hf

Pharia-1-LLM-7B-control-aligned-hf install

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

Pharia-1-LLM-7B-control-aligned-hf install url in huggingface.co:

https://huggingface.co/Aleph-Alpha/Pharia-1-LLM-7B-control-aligned-hf

Url of Pharia-1-LLM-7B-control-aligned-hf

Pharia-1-LLM-7B-control-aligned-hf huggingface.co Url

Provider of Pharia-1-LLM-7B-control-aligned-hf huggingface.co

Aleph-Alpha
ORGANIZATIONS

Other API from Aleph-Alpha