hojzas / autotrain-no2

huggingface.co
Total runs: 12
24-hour runs: 0
7-day runs: -6
30-day runs: -6
Model's Last Updated: January 17 2024
text-generation

Introduction of autotrain-no2

Model Details of autotrain-no2

Model Trained Using AutoTrain

This model was trained using AutoTrain. For more information, please visit AutoTrain .

Usage


from transformers import AutoModelForCausalLM, AutoTokenizer

model_path = "PATH_TO_THIS_REPO"

tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(
    model_path,
    device_map="auto",
    torch_dtype='auto'
).eval()

# Prompt content: "hi"
messages = [
    {"role": "user", "content": "hi"}
]

input_ids = tokenizer.apply_chat_template(conversation=messages, tokenize=True, add_generation_prompt=True, return_tensors='pt')
output_ids = model.generate(input_ids.to('cuda'))
response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True)

# Model response: "Hello! How can I assist you today?"
print(response)

Runs of hojzas autotrain-no2 on huggingface.co

12
Total runs
0
24-hour runs
-4
3-day runs
-6
7-day runs
-6
30-day runs

More Information About autotrain-no2 huggingface.co Model

More autotrain-no2 license Visit here:

https://choosealicense.com/licenses/other

autotrain-no2 huggingface.co

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

autotrain-no2 huggingface.co Url

https://huggingface.co/hojzas/autotrain-no2

hojzas autotrain-no2 online free

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

hojzas autotrain-no2 online free url in huggingface.co:

https://huggingface.co/hojzas/autotrain-no2

autotrain-no2 install

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

autotrain-no2 install url in huggingface.co:

https://huggingface.co/hojzas/autotrain-no2

Url of autotrain-no2

autotrain-no2 huggingface.co Url

Provider of autotrain-no2 huggingface.co

hojzas
ORGANIZATIONS

Other API from hojzas

huggingface.co

Total runs: 18
Run Growth: -1
Growth Rate: -5.56%
Updated:January 18 2024
huggingface.co

Total runs: 9
Run Growth: -4
Growth Rate: -44.44%
Updated:January 31 2024
huggingface.co

Total runs: 9
Run Growth: 1
Growth Rate: 11.11%
Updated:May 13 2024
huggingface.co

Total runs: 8
Run Growth: 0
Growth Rate: 0.00%
Updated:January 31 2024
huggingface.co

Total runs: 7
Run Growth: -1
Growth Rate: -14.29%
Updated:January 25 2024