Pretraining was continued using smaller datasets combined for another 200B tokens.
Once that completed exactly the same Finetune was done as the TinyLlama-1.1B-Chat-v1.0 version.
This Model
This is the chat model finetuned on top of TinyLlama/TinyLlama-1.1B-intermediate-step-1195k-token-2.5T.
We follow HF's Zephyr's training recipe. The model was " initially fine-tuned on a variant of the UltraChat dataset,
which contains a diverse range of synthetic dialogues generated by ChatGPT.
We then further aligned the model with 🤗 TRL's DPOTrainer on the openbmb/UltraFeedback dataset,
which contain 64k prompts and model completions that are ranked by GPT-4."
# Install transformers from source - only needed for versions <= v4.34# pip install git+https://github.com/huggingface/transformers.git# pip install accelerateimport os
import torch
from transformers import pipeline
pipe = pipeline("text-generation", model="Deathsquad10/TakeThree", torch_dtype=torch.float32, device_map="auto")
# We use the tokenizer's chat template to format each message - see https://huggingface.co/docs/transformers/main/en/chat_templating
messages = [
{
"role": "system",
"content": "You are a chatbot who can help code.",
},
{"role": "user", "content": "Write out the code to save name and surname, contact numbers,gender and age to a list."},
]
prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
outputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])
# Define the directory where the list will be saved
directory = "./data/"# Define the name and surname of the user
name = input("Enter your name: ")
surname = input("Enter your surname: ")
# Define the contact numbers
contact_number1 = input("Enter your first contact number: ")
contact_number2 = input("Enter your second contact number: ")
# Define the gender
gender = input("Enter your gender (M/F): ")
# Define the age
age = input("Enter your age: ")
# Define the list of data
data = [name, surname, contact_number1, contact_number2, gender, age]
# Define the directory where the list will be savedifnot os.path.exists(directory):
os.makedirs(directory)
# Define the file name
file_name = f"{name}{surname}.txt"# Define the file path
file_path = os.path.join(directory, file_name)
# Define the file mode
file_mode = "w"# Define the file creationwithopen(file_path, file_mode) as file:
# Write the data to the file
file.write(f"{data}\n")
print("Data saved to:", file_path)
Runs of Deathsquad10 TakeThree on huggingface.co
28
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About TakeThree huggingface.co Model
TakeThree huggingface.co is an AI model on huggingface.co that provides TakeThree's model effect (), which can be used instantly with this Deathsquad10 TakeThree model. huggingface.co supports a free trial of the TakeThree model, and also provides paid use of the TakeThree. Support call TakeThree model through api, including Node.js, Python, http.
TakeThree huggingface.co is an online trial and call api platform, which integrates TakeThree's modeling effects, including api services, and provides a free online trial of TakeThree, you can try TakeThree online for free by clicking the link below.
Deathsquad10 TakeThree online free url in huggingface.co:
TakeThree is an open source model from GitHub that offers a free installation service, and any user can find TakeThree on GitHub to install. At the same time, huggingface.co provides the effect of TakeThree install, users can directly use TakeThree installed effect in huggingface.co for debugging and trial. It also supports api for free installation.