tomasmcm / nexusraven-13b

Source: Nexusflow/NexusRaven-13B ✦ Quant: TheBloke/NexusRaven-13B-AWQ ✦ Surpassing the state-of-the-art in open-source function calling LLMs

replicate.com
Total runs: 53
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Github
Model's Last Updated: November 04 2023

Introduction of nexusraven-13b

Model Details of nexusraven-13b

Readme

NexusRaven-13B: Surpassing the state-of-the-art in open-source function calling LLMs.

Nexusflow HF - NexusRaven blog post - NexusRaven-13B - NexusRaven-13B Twitter Thread - NexusRaven-13B Github - NexusRaven API evaluation dataset

NexusRaven

Table of contents

This model is a fine-tuned version of codellama/CodeLlama-13b-Instruct-hf .

Introducing NexusRaven-13B

NexusRaven is an open-source and commercially viable function calling LLM that surpasses the state-of-the-art in function calling capabilities.

📊 Performance Highlights: With our demonstration retrieval system, NexusRaven-13B achieves a 95% success rate in using cybersecurity tools such as CVE/CPE Search and VirusTotal, while prompting GPT-4 achieves 64%. It has significantly lower cost and faster inference speed compared to GPT-4.

🔧 Generalization to the Unseen: NexusRaven-13B generalizes to tools never seen during model training, achieving a success rate comparable with GPT-3.5 in zero-shot setting, significantly outperforming all other open-source LLMs of similar sizes.

🔥 Commercially Permissive: The training of NexusRaven-13B does not involve any data generated by proprietary LLMs such as GPT-4. You have full control of the model when deployed in commercial applications.

NexusRaven NexusRaven

NexusRaven model usage

NexusRaven accepts a list of python functions. These python functions can do anything (including sending GET/POST requests to external APIs!). The two requirements include the python function signature and the appropriate docstring to generate the function call.

NexusRaven is highly compatible with langchain. See langchain_example.py . An example without langchain can be found in non_langchain_example.py .

Please note that the model will reflect on the answer sometimes, so we highly recommend stopping the model generation at a stopping criteria of ["\nReflection:"] , to avoid spending unnecessary tokens during inference, but the reflection might help in some rare cases. This is reflected in our langchain example.

More information about how to prompt the model can be found in prompting_readme.md .

The “Initial Answer” can be executed to run the function.

Quickstart

You can run the model on a GPU using the following code.

# Please `pip install transformers accelerate`
from transformers import pipeline


pipeline = pipeline(
    "text-generation",
    model="Nexusflow/NexusRaven-13B",
    torch_dtype="auto",
    device_map="auto",
)

prompt_template = """
<human>:
OPTION:
<func_start>def hello_world(n : int)<func_end>
<docstring_start>
\"\"\"
Prints hello world to the user.

Args:
n (int) : Number of times to print hello world.
\"\"\"
<docstring_end>

OPTION:
<func_start>def hello_universe(n : int)<func_end>
<docstring_start>
\"\"\"
Prints hello universe to the user.

Args:
n (int) : Number of times to print hello universe.
\"\"\"
<docstring_end>

User Query: Question: {question}

Please pick a function from the above options that best answers the user query and fill in the appropriate arguments.<human_end>
"""
prompt = prompt_template.format(question="Please print hello world 10 times.")

result = pipeline(prompt, max_new_tokens=100, return_full_text=False, do_sample=False)[0]["generated_text"]

# Get the "Initial Call" only
start_str = "Initial Answer: "
end_str = "\nReflection: "
start_idx = result.find(start_str) + len(start_str)
end_idx = result.find(end_str)
function_call = result[start_idx: end_idx]

print (f"Generated Call: {function_call}")

This will output:

Generated Call: hello_world(10) 

Which can be executed.

Training procedure
Training hyperparameters

The following hyperparameters were used during training: - learning_rate: 3e-05 - train_batch_size: 1 - eval_batch_size: 1 - seed: 42 - distributed_type: multi-GPU - num_devices: 8 - gradient_accumulation_steps: 16 - total_train_batch_size: 128 - total_eval_batch_size: 8 - optimizer: Adam with betas=(0.9,0.95) and epsilon=1e-08 - lr_scheduler_type: constant - num_epochs: 2.0

Framework versions
  • Transformers 4.33.2
  • Pytorch 2.0.1+cu118
  • Datasets 2.14.5
  • Tokenizers 0.13.3

Limitations

  1. We highly recommend using a stop criteria of ["\nReflection:"] . The model was trained to first generate an answer and then reflect on its answer to either improve the answer or keep the answer the same. However, this “chain of thought” is often not helpful, and the final answer is seldom better than the initial call. Therefore, we strongly recommend using the Initial Call as the main call to execute.
  2. The model works best when it is connected with a retriever when there are a multitude of functions, as a large number of functions will saturate the context window of this model.
  3. The model can be prone to generate incorrect calls. Please ensure proper guardrails to capture errant behavior is in place.
License

This model was trained on commercially viable data and is licensed under the Llama 2 community license following the original CodeLlama-13b-hf model.

References

We thank the CodeLlama team for their amazing models!

@misc{rozière2023code,
      title={Code Llama: Open Foundation Models for Code}, 
      author={Baptiste Rozière and Jonas Gehring and Fabian Gloeckle and Sten Sootla and Itai Gat and Xiaoqing Ellen Tan and Yossi Adi and Jingyu Liu and Tal Remez and Jérémy Rapin and Artyom Kozhevnikov and Ivan Evtimov and Joanna Bitton and Manish Bhatt and Cristian Canton Ferrer and Aaron Grattafiori and Wenhan Xiong and Alexandre Défossez and Jade Copet and Faisal Azhar and Hugo Touvron and Louis Martin and Nicolas Usunier and Thomas Scialom and Gabriel Synnaeve},
      year={2023},
      eprint={2308.12950},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}
Citation
@misc{nexusraven,
      title={NexusRaven: Surpassing the state-of-the-art in open-source function calling LLMs}, 
      author={Nexusflow.ai team},
      year={2023},
      url={http://nexusflow.ai/blog}
}
Contact

Please reach out to [email protected] for any questions!

Pricing of nexusraven-13b replicate.com

Run time and cost

This model costs approximately $0.016 to run on Replicate, or 62 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker .

This model runs on Nvidia A40 GPU hardware . Predictions typically complete within 28 seconds. The predict time for this model varies significantly based on the inputs.

Runs of tomasmcm nexusraven-13b on replicate.com

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

More Information About nexusraven-13b replicate.com Model

More nexusraven-13b license Visit here:

https://huggingface.co/TheBloke/NexusRaven-13B-AWQ

nexusraven-13b replicate.com

nexusraven-13b replicate.com is an AI model on replicate.com that provides nexusraven-13b's model effect (Source: Nexusflow/NexusRaven-13B ✦ Quant: TheBloke/NexusRaven-13B-AWQ ✦ Surpassing the state-of-the-art in open-source function calling LLMs), which can be used instantly with this tomasmcm nexusraven-13b model. replicate.com supports a free trial of the nexusraven-13b model, and also provides paid use of the nexusraven-13b. Support call nexusraven-13b model through api, including Node.js, Python, http.

nexusraven-13b replicate.com Url

https://replicate.com/tomasmcm/nexusraven-13b

tomasmcm nexusraven-13b online free

nexusraven-13b replicate.com is an online trial and call api platform, which integrates nexusraven-13b's modeling effects, including api services, and provides a free online trial of nexusraven-13b, you can try nexusraven-13b online for free by clicking the link below.

tomasmcm nexusraven-13b online free url in replicate.com:

https://replicate.com/tomasmcm/nexusraven-13b

nexusraven-13b install

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

nexusraven-13b install url in replicate.com:

https://replicate.com/tomasmcm/nexusraven-13b

nexusraven-13b install url in github:

https://github.com/nexusflowai/NexusRaven/

Url of nexusraven-13b

Provider of nexusraven-13b replicate.com

Other API from tomasmcm

replicate

Source: llamas-community/LlamaGuard-7b ✦ Quant: TheBloke/LlamaGuard-7B-AWQ ✦ Llama-Guard is a 7B parameter Llama 2-based input-output safeguard model

Total runs: 541.5K
Run Growth: 0
Growth Rate: 0.00%
Updated:January 05 2024
replicate

Source: HuggingFaceH4/zephyr-7b-beta ✦ Quant: TheBloke/zephyr-7B-beta-AWQ ✦ Zephyr is a series of language models that are trained to act as helpful assistants. Zephyr-7B-β is the second model in the series

Total runs: 188.8K
Run Growth: 0
Growth Rate: 0.00%
Updated:October 29 2023
replicate

Source: berkeley-nest/Starling-LM-7B-alpha ✦ Quant: TheBloke/Starling-LM-7B-alpha-AWQ ✦ An open large language model (LLM) trained by Reinforcement Learning from AI Feedback (RLAIF)

Total runs: 57.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:November 30 2023
replicate

Source: kaist-ai/prometheus-13b-v1.0 ✦ Quant: TheBloke/prometheus-13B-v1.0-AWQ ✦ An alternative to GPT-4 when evaluating LLMs & Reward models for RLHF

Total runs: 54.0K
Run Growth: 0
Growth Rate: 0.00%
Updated:December 18 2023
replicate

Source: mistralai/Mistral-7B-Instruct-v0.2 ✦ Quant: TheBloke/Mistral-7B-Instruct-v0.2-AWQ ✦ Improved instruct fine-tuned version of Mistral-7B-Instruct-v0.1

Total runs: 27.3K
Run Growth: 0
Growth Rate: 0.00%
Updated:December 12 2023
replicate

Source: upstage/SOLAR-10.7B-Instruct-v1.0 ✦ Quant: TheBloke/SOLAR-10.7B-Instruct-v1.0-AWQ ✦ Elevating Performance with Upstage Depth UP Scaling!

Total runs: 4.1K
Run Growth: 0
Growth Rate: 0.00%
Updated:December 15 2023
replicate

Source: umd-zhou-lab/claude2-alpaca-13B ✦ Quant: TheBloke/claude2-alpaca-13B-AWQ ✦ This model is trained by fine-tuning llama-2 with claude2 alpaca data

Total runs: 3.9K
Run Growth: 0
Growth Rate: 0.00%
Updated:December 10 2023
replicate

Source: Pclanglais/MonadGPT ✦ Quant: TheBloke/MonadGPT-AWQ ✦ What would have happened if ChatGPT was invented in the 17th century?

Total runs: 811
Run Growth: 0
Growth Rate: 0.00%
Updated:December 07 2023
replicate

Source: Intel/neural-chat-7b-v3-1 ✦ Quant: TheBloke/neural-chat-7B-v3-1-AWQ ✦ Fine-tuned model based on mistralai/Mistral-7B-v0.1

Total runs: 773
Run Growth: 0
Growth Rate: 0.00%
Updated:November 18 2023
replicate

Source: teknium/Mistral-Trismegistus-7B ✦ Quant: TheBloke/Mistral-Trismegistus-7B-AWQ ✦ Mistral Trismegistus is a model made for people interested in the esoteric, occult, and spiritual

Total runs: 597
Run Growth: 0
Growth Rate: 0.00%
Updated:October 23 2023
replicate

Source: migtissera/Synthia-13B-v1.2 ✦ Quant: TheBloke/Synthia-13B-v1.2-AWQ ✦ SynthIA (Synthetic Intelligent Agent) is a LLama-2-13B model trained on Orca style datasets

Total runs: 589
Run Growth: 0
Growth Rate: 0.00%
Updated:October 23 2023
replicate

Source: ajibawa-2023/carl-llama-2-13b ✦ Quant: TheBloke/Carl-Llama-2-13B-AWQ ✦ Carl: A Therapist AI

Total runs: 545
Run Growth: 0
Growth Rate: 0.00%
Updated:October 23 2023
replicate

Source: gorilla-llm/gorilla-openfunctions-v1 ✦ Quant: TheBloke/gorilla-openfunctions-v1-AWQ ✦ Extend Large Language Model (LLM) Chat Completion feature to formulate executable APIs call given natural language instructions and API context

Total runs: 416
Run Growth: 0
Growth Rate: 0.00%
Updated:November 25 2023
replicate

Source: meta-math/MetaMath-Mistral-7B ✦ Quant: TheBloke/MetaMath-Mistral-7B-AWQ ✦ Bootstrap Your Own Mathematical Questions for Large Language Models

Total runs: 391
Run Growth: 0
Growth Rate: 0.00%
Updated:November 14 2023
replicate

Source: bavest/fin-llama-33b ✦ Quant: TheBloke/fin-llama-33B-AWQ ✦ Efficient Finetuning of Quantized LLMs for Finance

Total runs: 305
Run Growth: 0
Growth Rate: 0.00%
Updated:October 23 2023
replicate

Source: monology/openinstruct-mistral-7b ✦ Quant: TheBloke/openinstruct-mistral-7B-AWQ ✦ Commercially-usable 7B model, based on mistralai/Mistral-7B-v0.1 and finetuned on VMware/open-instruct

Total runs: 295
Run Growth: 0
Growth Rate: 0.00%
Updated:November 29 2023
replicate

Source: rwitz/go-bruins-v2 ✦ Quant: TheBloke/go-bruins-v2-AWQ ✦ Designed to push the boundaries of NLP applications, offering unparalleled performance in generating human-like text

Total runs: 218
Run Growth: 0
Growth Rate: 0.00%
Updated:December 10 2023
replicate

Source: Unbabel/TowerInstruct-7B-v0.1 ✦ Quant: TheBloke/TowerInstruct-7B-v0.1-AWQ ✦ This model is trained to handle several translation-related tasks, such as general machine translation, gramatical error correction, and paraphrase generation

Total runs: 188
Run Growth: 0
Growth Rate: 0.00%
Updated:January 17 2024
replicate

Source: Q-bert/MetaMath-Cybertron-Starling ✦ Quant: TheBloke/MetaMath-Cybertron-Starling-AWQ ✦ Merge Q-bert/MetaMath-Cybertron and berkeley-nest/Starling-LM-7B-alpha using slerp merge

Total runs: 182
Run Growth: 0
Growth Rate: 0.00%
Updated:December 11 2023
replicate

Source: gradientai/Llama-3-8B-Instruct-Gradient-4194k ✦ Quant: solidrust/Llama-3-8B-Instruct-Gradient-4194k-AWQ ✦ Extending LLama-3 8B's context length from 8k to 4194K

Total runs: 142
Run Growth: 0
Growth Rate: 0.00%
Updated:May 17 2024
replicate

Source: PocketDoc/Dans-AdventurousWinds-Mk2-7b ✦ Quant: TheBloke/Dans-AdventurousWinds-Mk2-7B-AWQ ✦ This model is proficient in crafting text-based adventure games

Total runs: 129
Run Growth: 0
Growth Rate: 0.00%
Updated:November 18 2023
replicate

Source: WhiteRabbitNeo/WhiteRabbitNeo-13B-v1 ✦ TheBloke/WhiteRabbitNeo-13B-AWQ ✦ WhiteRabbitNeo is a model series that can be used for offensive and defensive cybersecurity

Total runs: 116
Run Growth: 0
Growth Rate: 0.00%
Updated:January 20 2024
replicate

Source: NousResearch/Obsidian-3B-V0.5 ✦ Worlds smallest multi-modal LLM

Total runs: 116
Run Growth: 0
Growth Rate: 0.00%
Updated:November 18 2023
replicate

Source: TinyLlama/TinyLlama-1.1B-Chat-v1.0 ✦ Quant: TheBloke/TinyLlama-1.1B-Chat-v1.0-AWQ ✦ The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.

Total runs: 107
Run Growth: 0
Growth Rate: 0.00%
Updated:January 03 2024
replicate

Source: haoranxu/ALMA-7B ✦ Quant: TheBloke/ALMA-7B-AWQ ✦ ALMA (Advanced Language Model-based trAnslator) is an LLM-based translation model

Total runs: 93
Run Growth: 0
Growth Rate: 0.00%
Updated:November 04 2023
replicate

Source: fblgit/una-cybertron-7b-v2-bf16 ✦ Quant: TheBloke/una-cybertron-7B-v2-AWQ ✦ A 7B MistralAI based model, best on it's series. Trained on SFT, DPO and UNA (Unified Neural Alignment) on multiple datasets

Total runs: 85
Run Growth: 0
Growth Rate: 0.00%
Updated:December 07 2023
replicate

Source: SuperAGI/SAM ✦ Quant: TheBloke/SAM-AWQ ✦ SAM (Small Agentic Model), a 7B model that demonstrates impressive reasoning abilities despite its smaller size

Total runs: 77
Run Growth: 0
Growth Rate: 0.00%
Updated:December 23 2023
replicate

Source: Arc53/docsgpt-7b-mistral ✦ Quant: TheBloke/docsgpt-7B-mistral-AWQ ✦ DocsGPT is optimized for Documentation (RAG), fine-tuned for providing answers that are based on context

Total runs: 74
Run Growth: 0
Growth Rate: 0.00%
Updated:December 30 2023
replicate

Source: meta-llama/Llama-2-7b-chat-hf ✦ Quant: TheBloke/Llama-2-7B-Chat-AWQ ✦ Intended for assistant-like chat

Total runs: 74
Run Growth: 0
Growth Rate: 0.00%
Updated:November 14 2023
replicate

Source: v1olet/v1olet_marcoroni-go-bruins-merge-7B ✦ Quant: TheBloke/v1olet_marcoroni-go-bruins-merge-7B-AWQ ✦ Merge AIDC-ai-business/Marcoroni-7B-v3 and rwitz/go-bruins-v2 using slerp merge

Total runs: 71
Run Growth: 0
Growth Rate: 0.00%
Updated:December 13 2023
replicate

Source: chargoddard/loyal-piano-m7 ✦ Quant: TheBloke/loyal-piano-m7-AWQ ✦ Intended to be a roleplay-focused model with some smarts and good long-context recall

Total runs: 41
Run Growth: 0
Growth Rate: 0.00%
Updated:December 05 2023
replicate

Source: Neuronovo/neuronovo-7B-v0.3 ✦ Quant: TheBloke/neuronovo-7B-v0.3-AWQ ✦ Neuronovo/neuronovo-7B-v0.3 model represents an advanced and fine-tuned version of a large language model, initially based on CultriX/MistralTrix-v1.

Total runs: 41
Run Growth: 0
Growth Rate: 0.00%
Updated:January 12 2024
replicate

Source: fblgit/juanako-7b-UNA ✦ Quant: TheBloke/juanako-7B-UNA-AWQ ✦ juanako uses UNA, Uniform Neural Alignment. A training technique that ease alignment between transformer layers yet to be published

Total runs: 38
Run Growth: 0
Growth Rate: 0.00%
Updated:December 02 2023
replicate

Source: SciPhi/Sensei-7B-V1 ✦ Quant: TheBloke/Sensei-7B-V1-AWQ ✦ Sensei is specialized in performing RAG over detailed web search results

Total runs: 35
Run Growth: 0
Growth Rate: 0.00%
Updated:January 20 2024
replicate

Source: OpenBuddy/openbuddy-zephyr-7b-v14.1 ✦ Quant: TheBloke/openbuddy-zephyr-7B-v14.1-AWQ ✦ Open Multilingual Chatbot

Total runs: 29
Run Growth: 0
Growth Rate: 0.00%
Updated:December 18 2023
replicate

Source: TokenBender/evolvedSeeker_1_3 ✦ Quant: TheBloke/evolvedSeeker_1_3-AWQ ✦ A fine-tuned version of deepseek-ai/deepseek-coder-1.3b-base on 50k instructions for 3 epochs

Total runs: 27
Run Growth: 0
Growth Rate: 0.00%
Updated:November 28 2023
replicate

Source: Severian/ANIMA-Phi-Neptune-Mistral-7B ✦ Quant: TheBloke/ANIMA-Phi-Neptune-Mistral-7B-AWQ ✦ Biomimicry Enhanced LLM

Total runs: 20
Run Growth: 0
Growth Rate: 0.00%
Updated:November 14 2023
replicate

Source: pipizhao/Pandalyst-7B-V1.2 ✦ Quant: TheBloke/Pandalyst-7B-v1.2-AWQ ✦ Pandalyst: A large language model for mastering data analysis using pandas

Total runs: 18
Run Growth: 0
Growth Rate: 0.00%
Updated:January 05 2024
replicate

Source: pipizhao/Pandalyst_13B_V1.0 ✦ Quant: TheBloke/Pandalyst_13B_V1.0-AWQ ✦ Pandalyst: A large language model for mastering data analysis using pandas

Total runs: 18
Run Growth: 0
Growth Rate: 0.00%
Updated:January 31 2024
replicate

Source: allenai/digital-socrates-13b ✦ Quant: TheBloke/digital-socrates-13B-AWQ ✦ Digital Socrates is an open-source, automatic explanation-critiquing model

Total runs: 18
Run Growth: 0
Growth Rate: 0.00%
Updated:January 17 2024