Corianas / llama-3-reactor

huggingface.co
Total runs: 10
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: January 20 2025
text-generation

Introduction of llama-3-reactor

Model Details of llama-3-reactor

This is a Re-act style model trained from meta-llama/Meta-Llama-3-8B

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-3-reactor on huggingface.co

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

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

More llama-3-reactor license Visit here:

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

llama-3-reactor huggingface.co

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

llama-3-reactor huggingface.co Url

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

Corianas llama-3-reactor online free

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

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

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

llama-3-reactor install

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

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

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

Url of llama-3-reactor

llama-3-reactor huggingface.co Url

Provider of llama-3-reactor huggingface.co

Corianas
ORGANIZATIONS

Other API from Corianas

huggingface.co

Total runs: 575
Run Growth: 407
Growth Rate: 70.78%
Updated:November 18 2023
huggingface.co

Total runs: 570
Run Growth: 406
Growth Rate: 71.23%
Updated:November 18 2023
huggingface.co

Total runs: 557
Run Growth: 243
Growth Rate: 43.63%
Updated:November 18 2023
huggingface.co

Total runs: 305
Run Growth: 90
Growth Rate: 29.51%
Updated:March 26 2024
huggingface.co

Total runs: 244
Run Growth: 163
Growth Rate: 66.80%
Updated:December 06 2024
huggingface.co

Total runs: 148
Run Growth: 137
Growth Rate: 92.57%
Updated:March 30 2023
huggingface.co

Total runs: 103
Run Growth: 32
Growth Rate: 31.07%
Updated:November 18 2023
huggingface.co

Total runs: 95
Run Growth: 24
Growth Rate: 25.26%
Updated:November 18 2023
huggingface.co

Total runs: 85
Run Growth: 15
Growth Rate: 17.65%
Updated:November 18 2023
huggingface.co

Total runs: 81
Run Growth: 14
Growth Rate: 17.28%
Updated:November 18 2023
huggingface.co

Total runs: 42
Run Growth: 29
Growth Rate: 69.05%
Updated:February 06 2025
huggingface.co

Total runs: 34
Run Growth: -44
Growth Rate: -129.41%
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