元编程参考文档

NVIDIA NIM 接口

13 个节点

本页内容 13

配置 Bria AI

函数

Configures the Bria AI model for text-to-image generation.

签名
配置 Bria AI -> BriaAIConfiguration
    宽高比: 文本
    CFG 系数: 整数
    反向提示词: 文本
    输出格式: 文本
    种子: 整数
    台阶数: 整数
BriaAIConfiguration ConfigureBriaAI(
    string aspectRatio = "1:1",
    int cfgScale = 5,
    string negativePrompt = "",
    string outputFormat = "jpeg",
    int seed = 0,
    int steps = 50)

参数

名称类型默认值说明
宽高比文本1:1
CFG 系数整数5
反向提示词文本—
输出格式文本jpeg
种子整数0
台阶数整数50

返回

结果BriaAIConfiguration
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
NVIDIA NIM 接口
所属包
生成式 AI

配置 DeepSeek

函数

Configures the DeepSeek R1 model with default parameters.

签名
配置 DeepSeek -> DeepSeekConfiguration
    温度: 低精度数字
    Top P 采样: 低精度数字
    最大令牌数: 整数
    流式输出: 真否
    频率惩罚: 低精度数字
    存在惩罚: 低精度数字
DeepSeekConfiguration ConfigureDeepSeek(
    float temperature = 0.6f,
    float topP = 0.7f,
    int maxTokens = 4096,
    bool stream = false,
    float frequencyPenalty = 0f,
    float presencePenalty = 0f)

参数

名称类型默认值说明
温度低精度数字0.6
Top P 采样低精度数字0.7
最大令牌数整数4096
流式输出真否False
频率惩罚低精度数字0
存在惩罚低精度数字0

返回

结果DeepSeekConfiguration
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
NVIDIA NIM 接口
所属包
生成式 AI

配置 Fuyu-8B

函数

Configures the Fuyu8B multi-modal model with customizable parameters.

签名
配置 Fuyu-8B -> Fuyu8bConfiguration
    温度: 低精度数字
    Top P 采样: 低精度数字
    最大令牌数: 整数
    流式输出: 真否
Fuyu8bConfiguration ConfigureFuyu8B(
    float temperature = 0.2f,
    float topP = 0.7f,
    int maxTokens = 1024,
    bool stream = false)

参数

名称类型默认值说明
温度低精度数字0.2
Top P 采样低精度数字0.7
最大令牌数整数1024
流式输出真否False

返回

结果Fuyu8bConfiguration
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
NVIDIA NIM 接口
所属包
生成式 AI

配置 Gemma-2B

函数

Configures the Google Gemma 2B model with default parameters.

签名
配置 Gemma-2B -> Gemma2bConfiguration
    温度: 低精度数字
    Top P 采样: 低精度数字
    最大令牌数: 整数
    流式输出: 真否
    频率惩罚: 低精度数字
    存在惩罚: 低精度数字
Gemma2bConfiguration ConfigureGemma2B(
    float temperature = 0.6f,
    float topP = 0.7f,
    int maxTokens = 4096,
    bool stream = false,
    float frequencyPenalty = 0f,
    float presencePenalty = 0f)

参数

名称类型默认值说明
温度低精度数字0.6
Top P 采样低精度数字0.7
最大令牌数整数4096
流式输出真否False
频率惩罚低精度数字0
存在惩罚低精度数字0

返回

结果Gemma2bConfiguration
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
NVIDIA NIM 接口
所属包
生成式 AI

配置 Kosmos-2

函数

Configures the Kosmos 2 model with default parameters.

签名
配置 Kosmos-2 -> Kosmos2Configuration
    温度: 低精度数字
    Top P 采样: 低精度数字
    最大令牌数: 整数
    流式输出: 真否
Kosmos2Configuration ConfigureKosmos2(
    float temperature = 0.2f,
    float topP = 0.7f,
    int maxTokens = 1024,
    bool stream = false)

参数

名称类型默认值说明
温度低精度数字0.2
Top P 采样低精度数字0.7
最大令牌数整数1024
流式输出真否False

返回

结果Kosmos2Configuration
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
NVIDIA NIM 接口
所属包
生成式 AI

配置 Llama 3

函数

Configures the LLaMA3 model with customizable parameters.

签名
配置 Llama 3 -> Llama3Configuration
    温度: 低精度数字
    Top P 采样: 低精度数字
    最大令牌数: 整数
    流式输出: 真否
    频率惩罚: 低精度数字
    存在惩罚: 低精度数字
Llama3Configuration ConfigureLlama3(
    float temperature = 0.6f,
    float topP = 0.7f,
    int maxTokens = 4096,
    bool stream = false,
    float frequencyPenalty = 0f,
    float presencePenalty = 0f)

参数

名称类型默认值说明
温度低精度数字0.6
Top P 采样低精度数字0.7
最大令牌数整数4096
流式输出真否False
频率惩罚低精度数字0
存在惩罚低精度数字0

返回

结果Llama3Configuration
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
NVIDIA NIM 接口
所属包
生成式 AI

配置 Mistral-7B

函数

Configures the Mistral7B model with customizable parameters.

签名
配置 Mistral-7B -> Mistral7bConfiguration
    温度: 低精度数字
    Top P 采样: 低精度数字
    最大令牌数: 整数
    流式输出: 真否
    频率惩罚: 低精度数字
    存在惩罚: 低精度数字
Mistral7bConfiguration ConfigureMistral7B(
    float temperature = 0.3f,
    float topP = 1f,
    int maxTokens = 1024,
    bool stream = false,
    float frequencyPenalty = 0f,
    float presencePenalty = 0f)

参数

名称类型默认值说明
温度低精度数字0.3
Top P 采样低精度数字1
最大令牌数整数1024
流式输出真否False
频率惩罚低精度数字0
存在惩罚低精度数字0

返回

结果Mistral7bConfiguration
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
NVIDIA NIM 接口
所属包
生成式 AI

配置 NIM

函数

Configures the NVIDIA NIM API by providing the necessary API key and model selection.

重载 1/2

签名
配置 NIM -> NIM Configuration
    API 密钥: 文本
    模型: NIM Allowed Models
NIMConfiguration ConfigureNIM(
    string apiKey,
    NIMConfiguration.NIMAllowedModels model = NIMAllowedModels.LLaMA3_70B_Instruct)

参数

名称类型默认值说明
API 密钥文本—The API key used to authenticate with the NIM API.
模型NIM Allowed ModelsLlama 3 70B InstructModel selection with default parameters.

返回

结果NIM Configuration

重载 2/2

签名
配置 NIM -> NIM Configuration
    API 密钥: 文本
    模型: NIMConfiguration.NIMModelConfiguration
NIMConfiguration ConfigureNIM(
    string apiKey,
    NIMConfiguration.NIMModelConfiguration model)

参数

名称类型默认值说明
API 密钥文本—The API key used to authenticate with the NIM API.
模型NIMConfiguration.NIMModelConfiguration—The NIM model configuration used for inference.

返回

结果NIM Configuration
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
NVIDIA NIM 接口
所属包
生成式 AI

配置 Phi-3

函数

Configures the Phi3 model with customizable parameters.

签名
配置 Phi-3 -> Phi3Configuration
    温度: 低精度数字
    Top P 采样: 低精度数字
    最大令牌数: 整数
    流式输出: 真否
    频率惩罚: 低精度数字
    存在惩罚: 低精度数字
Phi3Configuration ConfigurePhi3(
    float temperature = 0.6f,
    float topP = 0.7f,
    int maxTokens = 4096,
    bool stream = false,
    float frequencyPenalty = 0f,
    float presencePenalty = 0f)

参数

名称类型默认值说明
温度低精度数字0.6
Top P 采样低精度数字0.7
最大令牌数整数4096
流式输出真否False
频率惩罚低精度数字0
存在惩罚低精度数字0

返回

结果Phi3Configuration
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
NVIDIA NIM 接口
所属包
生成式 AI

配置 SD3

函数

Configures the SD3 (Stable Diffusion 3) model for text-to-image generation.

签名
配置 SD3 -> SD3Configuration
    宽高比: 文本
    CFG 系数: 整数
    反向提示词: 文本
    输出格式: 文本
    种子: 整数
    台阶数: 整数
SD3Configuration ConfigureSD3(
    string aspectRatio = "1:1",
    int cfgScale = 5,
    string negativePrompt = "",
    string outputFormat = "jpeg",
    int seed = 0,
    int steps = 50)

参数

名称类型默认值说明
宽高比文本1:1
CFG 系数整数5
反向提示词文本—
输出格式文本jpeg
种子整数0
台阶数整数50

返回

结果SD3Configuration
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
NVIDIA NIM 接口
所属包
生成式 AI

NIM 图文生成文本

函数

Calls the NVIDIA NIM API to generate a text response from an image/text input.

签名
NIM 图文生成文本 -> 文本
    输入文本: 文本
    输入图像: Pixel Image
    配置: NIM Configuration
string NimImageTextToText(
    string inputText,
    PixelImage inputImage,
    NIMConfiguration configuration)

参数

名称类型默认值说明
输入文本文本—
输入图像Pixel Image—
配置NIM Configuration—Configuration with API key.

返回

结果文本
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
NVIDIA NIM 接口
所属包
生成式 AI

NIM 文本生成

函数

Calls the NVIDIA NIM API to generate text.

签名
NIM 文本生成(输入: 文本, 配置: NIM Configuration) -> 文本
string NimTextGeneration(
    string input,
    NIMConfiguration configuration)

参数

名称类型默认值说明
输入文本—User input prompt.
配置NIM Configuration—Configuration with API key.

返回

结果文本
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
NVIDIA NIM 接口
所属包
生成式 AI

NIM 文本生成图像

函数

Calls the NVIDIA NIM API to generate an image from a text description.

签名
NIM 文本生成图像 -> Pixel Image
    输入: 文本
    配置: NIM Configuration
PixelImage NimTextToImage(
    string input,
    NIMConfiguration configuration)

参数

名称类型默认值说明
输入文本—User input prompt.
配置NIM Configuration—Configuration with API key.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
NVIDIA NIM 接口
所属包
生成式 AI