search
HomeTechnology peripheralsAIWith ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

ModelScope-Agent provides a universal, customizable Agent framework to facilitate users to create their own agents. The framework is based on open source Large Language Models (LLMs) at its core and provides a user-friendly system library with the following features:

  • Customizable and functional Comprehensive framework: Provides customizable engine design, covering functions such as data collection, tool retrieval, tool registration, storage management, customized model training and practical applications, which can be used to quickly implement actual scenarios Applications.
  • Open source LLMs as core components: Supports model training on multiple open source LLMs in the ModelScope community, and has open sourced supporting Chinese The English tool instruction data set MSAgent-Bench is used to enhance the planning and scheduling capabilities of open source large models as the agent hub.
  • Diversified and comprehensive API, supporting API retrieval: Implemented in a unified way with model API and common functional API It is seamlessly integrated and provides an open source API retrieval solution by default.

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

  • ## Paper link: https://arxiv.org/abs/2309.00986
  • Code link: https://github.com/modelscope/modelscope-agent
  • ModelScope experience address: https://modelscope.cn/studios/damo/ModelScopeGPT/summary

Capability display

The following will first show some capabilities of ModelScopeGPT (Magic GPT) implemented based on ModelScope-Agent:

The content that needs to be rewritten is: 1. In a single-step tool call, the Agent needs to select the appropriate tool and generate a request, and then return the result to the user based on the execution result

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

2. In a multi-step tool call, the Agent needs to plan, schedule, execute and reply to multiple tools

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

3. When the tool is called in multiple rounds of dialogue, the Agent needs to mine the parameters that need to be passed to the tool from the historical dialogue.

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

Community knowledge Q&A platform based on search tools

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

## Framework introduction

#What is the design principle of the ModelScope-Agent framework?

ModelScope-Agent is a general, customizable Agent framework for practical application development. It is based on open source large language models (LLMs) as the core and includes Modules such as memory control and tool use. The open source LLM is mainly responsible for task planning, scheduling and reply generation; the memory control module mainly includes knowledge retrieval and prompt (prompt word) management; the tool usage module includes tool library, tool retrieval and tool customization. The ModelScope-Agent system architecture is as follows:

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

How the ModelScope-Agent framework is executed

ModelScope-Agent works by splitting the goal into smaller tasks and then completing them one by one. For example, when a user requests "Write a short story, read it with a female voice, and add a video at the same time," ModelScope-Agent will display the entire task planning process. It will first retrieve relevant speech synthesis tools through tool search, and then the open source LLM will perform planning and scheduling. , first generate a story, then call the corresponding speech generation model, generate the speech and read it in a female voice, display it to the user, and finally call the video generation model to generate a video based on the generated story content; the entire process does not require user configuration. The current request may require The called tools greatly improve the ease of use.

Open source large model training framework: new training methods, data and model open source

In addition to the ModelScope-Agent framework, the research team also proposed a new tool instruction fine-tuning training method: Weighted LM, which improves the ability to call open source large model tool instructions by weighting loss on some tokens called by tool instructions.

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

The research team also released a high-quality Chinese and English dataset called MSAgent-Bench, which contains 600,000 multi-round and multi-step A sample of tool command calling capabilities. Based on this data set, the research team adopted a new training method to optimize the Qwen-7B model and obtained a model named MSAgent-Qwen-7B. Relevant data sets and models have been publicly released on the open source platform

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included


  • ##MSAgent-Bench: https://modelscope.cn/datasets/damo/MSAgent-Bench/summary
  • MSAgent-Qwen-7B:https://modelscope.cn/models/damo/MSAgent-Qwen -7B/summary

Rewritten content: Integrated tool list

Currently, ModelScope-Agent has been connected to many AI models such as natural language processing, speech, vision, and multi-modality by default, and has also integrated open source solutions such as knowledge retrieval and API retrieval by default.

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

ModelScope-Agent Practice

ModelScope-Agent github also provides a nanny-level practice demo page, Let novices also build their own intelligent agents.

Please download the demo notebook: https://github.com/modelscope/modelscope-agent/blob/master/demo/demo_qwen_agent.ipynb

1. First pull the ModelScope-Agent code and install the relevant dependencies

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

2. You need to configure the config file, including ModelScope token and build API tools Search engine

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

3. Start the central large model

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

4. Agent construction and use, relying on previously built large models, tool lists, tool retrieval and memory modules

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

Register New Tool Practice

1. After pulling the ModelScope-Agent code, enter the modelscope_agent/tools directory and add a file named custom_tool.py at the code level. Configure the API's required description, name, and parameters in this file. At the same time, add two calling options: local_call (local call) and remote_call (remote call)

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

The content that needs to be rewritten is: 2 , Configuration environment and large model deployment refer to 2 and 3 of the previous chapter

3. Construct the newly registered tools into a list and add it to the Agent's construction process

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

4. Use the agen.run() method and enter the query to test whether the tool can successfully call the corresponding API

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

5. The agent will automatically call the corresponding API and return the execution result to the main model, and the main model will return a reply

With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included

One More Thing

Developers can refer to the above tutorials to easily build their own agents. ModelScope-Agent relies on the Magic Community and will adapt to more new open source technologies in the future. Large model, launch more applications developed based on ModelScope-Agent, such as customer service agent, personal assistant agent, story agent, motion agent, multi-agent (multi-modal agent) and so on.

The above is the detailed content of With ModelScope-Agent, novices can also create exclusive agents, with nanny-level tutorials included. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
Are You At Risk Of AI Agency Decay? Take The Test To Find OutAre You At Risk Of AI Agency Decay? Take The Test To Find OutApr 21, 2025 am 11:31 AM

This article explores the growing concern of "AI agency decay"—the gradual decline in our ability to think and decide independently. This is especially crucial for business leaders navigating the increasingly automated world while retainin

How to Build an AI Agent from Scratch? - Analytics VidhyaHow to Build an AI Agent from Scratch? - Analytics VidhyaApr 21, 2025 am 11:30 AM

Ever wondered how AI agents like Siri and Alexa work? These intelligent systems are becoming more important in our daily lives. This article introduces the ReAct pattern, a method that enhances AI agents by combining reasoning an

Revisiting The Humanities In The Age Of AIRevisiting The Humanities In The Age Of AIApr 21, 2025 am 11:28 AM

"I think AI tools are changing the learning opportunities for college students. We believe in developing students in core courses, but more and more people also want to get a perspective of computational and statistical thinking," said University of Chicago President Paul Alivisatos in an interview with Deloitte Nitin Mittal at the Davos Forum in January. He believes that people will have to become creators and co-creators of AI, which means that learning and other aspects need to adapt to some major changes. Digital intelligence and critical thinking Professor Alexa Joubin of George Washington University described artificial intelligence as a “heuristic tool” in the humanities and explores how it changes

Understanding LangChain Agent FrameworkUnderstanding LangChain Agent FrameworkApr 21, 2025 am 11:25 AM

LangChain is a powerful toolkit for building sophisticated AI applications. Its agent architecture is particularly noteworthy, allowing developers to create intelligent systems capable of independent reasoning, decision-making, and action. This expl

What are the Radial Basis Functions Neural Networks?What are the Radial Basis Functions Neural Networks?Apr 21, 2025 am 11:13 AM

Radial Basis Function Neural Networks (RBFNNs): A Comprehensive Guide Radial Basis Function Neural Networks (RBFNNs) are a powerful type of neural network architecture that leverages radial basis functions for activation. Their unique structure make

The Meshing Of Minds And Machines Has ArrivedThe Meshing Of Minds And Machines Has ArrivedApr 21, 2025 am 11:11 AM

Brain-computer interfaces (BCIs) directly link the brain to external devices, translating brain impulses into actions without physical movement. This technology utilizes implanted sensors to capture brain signals, converting them into digital comman

Insights on spaCy, Prodigy and Generative AI from Ines MontaniInsights on spaCy, Prodigy and Generative AI from Ines MontaniApr 21, 2025 am 11:01 AM

This "Leading with Data" episode features Ines Montani, co-founder and CEO of Explosion AI, and co-developer of spaCy and Prodigy. Ines offers expert insights into the evolution of these tools, Explosion's unique business model, and the tr

A Guide to Building Agentic RAG Systems with LangGraphA Guide to Building Agentic RAG Systems with LangGraphApr 21, 2025 am 11:00 AM

This article explores Retrieval Augmented Generation (RAG) systems and how AI agents can enhance their capabilities. Traditional RAG systems, while useful for leveraging custom enterprise data, suffer from limitations such as a lack of real-time dat

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.