Downloads · 30 days
0
guillaumephd/cleante
cleante is a machine learning model from guillaumephd. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as llama2.
Cleante is a fine-tuned model, based on a pre-trained 7B model.
Downloads · 30 days
0
Access
Public
Updated Sep 27, 2023
Repo size
101 MB
Likes
0
Public
Click a slice to open those files.
.bin33.6 MB · 93%
From the Hugging Face model README
Cleante is a fine-tuned model, based on a pre-trained 7B model.
from transformers import pipeline, AutoModelForCausalLM, AutoTokenizer
model_name = "guillaumephd/cleante"
# Load the model and tokenizer
model = AutoModelForCausalLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
# Define the text generation pipeline
generator = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
device=0 # Use GPU if available please
)
# Generate text using the Cleante model
prompt = "###Human: What's your nickname, assistant? ###Assistant: "
output = generator(prompt, max_length=100, do_sample=True, temperature=0.5, repetition_penalty=1.2,)
# Print the generated text
print(output[0]["generated_text"])
outputs = model.generate(**inputs, generation_config=generation_config)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
# The model should output a text that looks like:
# "My name is Cléante, and I was trained by Guillaume as a language model."
See above.
Demonstration purpose only.
Personal data.
The following hyperparameters were used during training: