Corianas / llama-tiny-reactor

huggingface.co
Total runs: 1
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: July 22 2024
text-generation

Introduction of llama-tiny-reactor

Model Details of llama-tiny-reactor

This is a Re-act style model trained from TinyLlama/TinyLlama_v1.1

Dataset was parsed with:

def extract_trajectory_info(data):
    """
    Extracts the question, thoughts, actions, and observations from the trajectory field of the data.

    Parameters:
    data (dict): The data entry containing the trajectory field.

    Returns:
    dict: A dictionary containing the extracted question, thoughts, actions, and observations.
    """
    # Extracting the question
    question = data.get('question', '')

    # Extracting thoughts, actions, and observations using regex
    thoughts = re.findall(r'Thought \d+: (.+?)(?=Action|\Z)', data.get('trajectory', ''), re.DOTALL)
    actions = re.findall(r'Action \d+: (.+?)(?=Observation|\Z)', data.get('trajectory', ''), re.DOTALL)
    observations = re.findall(r'Observation \d+: (.+?)(?=Thought|\Z)', data.get('trajectory', ''), re.DOTALL)

    # Cleaning up the extracted data
    thoughts = [thought.strip() for thought in thoughts]
    actions = [action.strip() for action in actions]
    observations = [observation.strip() for observation in observations]

    return {
        'question': question,
        'thoughts': thoughts,
        'actions': actions,
        'observations': observations
    }
# Sample data
extracted_info = extract_trajectory_info(ds["train"][0])

Then remade into a new dataset with

# Predefine the instructions for the task
preamble = """Tools available:
(1) Search[entity], which searches the exact entity on Wikipedia and returns the first paragraph if it exists. If not, it will return some similar entities to search.
(2) Lookup[keyword], which returns the next sentence containing the keyword in the current passage.
(3) Finish[answer], which returns the answer and finishes the task.
"""
dataset = []
# Iterate through a specified number of examples in the training set
for i in range(len(ds['train'])):
    extracted_info = extract_trajectory_info(ds['train'][i])

    # Iterate through each thought in the extracted information
    for j in range(len(extracted_info['thoughts'])):
        out = f"{preamble}---\nQuestion: {extracted_info['question']}\n"
        prev = ""
        # Construct output for the first thought
        if j == 0:
            out += f"Thought: {extracted_info['thoughts'][0]}\n"
            out += f"Action: {extracted_info['actions'][0]}\nPAUSE\n\n\n\n"

        else:
            for k in range(1, j + 1):
                # Use appropriate indexing to avoid out-of-bounds errors
                prev += f"Thought:{extracted_info['thoughts'][j - k]}\n"
                prev += f"Action: {extracted_info['actions'][j - k]}\nPAUSE\n"

                prev += f"Observation: {extracted_info['observations'][j - k]}\n"

            out += prev  # Remove trailing space
            out += f"---\nThought: {extracted_info['thoughts'][j]}\n"
            out += f"Action: {extracted_info['actions'][j]}\nPAUSE\n\n\n\n"

        # Print the constructed output
        print(out)
        dataset.append(out)
        #print(len(out))

Runs of Corianas llama-tiny-reactor on huggingface.co

1
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About llama-tiny-reactor huggingface.co Model

More llama-tiny-reactor license Visit here:

https://choosealicense.com/licenses/apache-2.0

llama-tiny-reactor huggingface.co

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

llama-tiny-reactor huggingface.co Url

https://huggingface.co/Corianas/llama-tiny-reactor

Corianas llama-tiny-reactor online free

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

Corianas llama-tiny-reactor online free url in huggingface.co:

https://huggingface.co/Corianas/llama-tiny-reactor

llama-tiny-reactor install

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

llama-tiny-reactor install url in huggingface.co:

https://huggingface.co/Corianas/llama-tiny-reactor

Url of llama-tiny-reactor

llama-tiny-reactor huggingface.co Url

Provider of llama-tiny-reactor huggingface.co

Corianas
ORGANIZATIONS

Other API from Corianas

huggingface.co

Total runs: 569
Run Growth: 401
Growth Rate: 70.47%
Updated:November 18 2023
huggingface.co

Total runs: 566
Run Growth: 401
Growth Rate: 70.85%
Updated:November 18 2023
huggingface.co

Total runs: 555
Run Growth: 241
Growth Rate: 43.42%
Updated:November 18 2023
huggingface.co

Total runs: 302
Run Growth: 87
Growth Rate: 28.81%
Updated:March 26 2024
huggingface.co

Total runs: 240
Run Growth: 158
Growth Rate: 65.83%
Updated:December 06 2024
huggingface.co

Total runs: 146
Run Growth: 135
Growth Rate: 92.47%
Updated:March 30 2023
huggingface.co

Total runs: 102
Run Growth: 31
Growth Rate: 30.39%
Updated:November 18 2023
huggingface.co

Total runs: 94
Run Growth: 22
Growth Rate: 23.40%
Updated:November 18 2023
huggingface.co

Total runs: 83
Run Growth: 12
Growth Rate: 14.46%
Updated:November 18 2023
huggingface.co

Total runs: 80
Run Growth: 13
Growth Rate: 16.25%
Updated:November 18 2023
huggingface.co

Total runs: 43
Run Growth: 30
Growth Rate: 69.77%
Updated:February 06 2025
huggingface.co

Total runs: 37
Run Growth: -41
Growth Rate: -110.81%
Updated:March 20 2023
huggingface.co

Total runs: 9
Run Growth: 0
Growth Rate: 0.00%
Updated:March 22 2024
huggingface.co

Total runs: 1
Run Growth: -2
Growth Rate: -200.00%
Updated:March 26 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 10 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 21 2022