1. Packages
  2. Scaleway
  3. API Docs
  4. inference
  5. getModel
Scaleway v1.28.0 published on Friday, May 16, 2025 by pulumiverse

scaleway.inference.getModel

Explore with Pulumi AI

scaleway logo
Scaleway v1.28.0 published on Friday, May 16, 2025 by pulumiverse

    The scaleway.inference.Model data source allows you to retrieve information about an inference model available in the Scaleway Inference API, either by providing the model’s name or its model_id.

    Example Usage

    Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const myModel = scaleway.inference.getModel({
        name: "meta/llama-3.1-8b-instruct:fp8",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    my_model = scaleway.inference.get_model(name="meta/llama-3.1-8b-instruct:fp8")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/inference"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := inference.LookupModel(ctx, &inference.LookupModelArgs{
    			Name: pulumi.StringRef("meta/llama-3.1-8b-instruct:fp8"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var myModel = Scaleway.Inference.GetModel.Invoke(new()
        {
            Name = "meta/llama-3.1-8b-instruct:fp8",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.inference.InferenceFunctions;
    import com.pulumi.scaleway.inference.inputs.GetModelArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var myModel = InferenceFunctions.getModel(GetModelArgs.builder()
                .name("meta/llama-3.1-8b-instruct:fp8")
                .build());
    
        }
    }
    
    variables:
      myModel:
        fn::invoke:
          function: scaleway:inference:getModel
          arguments:
            name: meta/llama-3.1-8b-instruct:fp8
    

    Using getModel

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getModel(args: GetModelArgs, opts?: InvokeOptions): Promise<GetModelResult>
    function getModelOutput(args: GetModelOutputArgs, opts?: InvokeOptions): Output<GetModelResult>
    def get_model(model_id: Optional[str] = None,
                  name: Optional[str] = None,
                  url: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetModelResult
    def get_model_output(model_id: Optional[pulumi.Input[str]] = None,
                  name: Optional[pulumi.Input[str]] = None,
                  url: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetModelResult]
    func LookupModel(ctx *Context, args *LookupModelArgs, opts ...InvokeOption) (*LookupModelResult, error)
    func LookupModelOutput(ctx *Context, args *LookupModelOutputArgs, opts ...InvokeOption) LookupModelResultOutput

    > Note: This function is named LookupModel in the Go SDK.

    public static class GetModel 
    {
        public static Task<GetModelResult> InvokeAsync(GetModelArgs args, InvokeOptions? opts = null)
        public static Output<GetModelResult> Invoke(GetModelInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetModelResult> getModel(GetModelArgs args, InvokeOptions options)
    public static Output<GetModelResult> getModel(GetModelArgs args, InvokeOptions options)
    
    fn::invoke:
      function: scaleway:inference/getModel:getModel
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ModelId string
    The ID of the model to retrieve. Must be a valid UUID with locality (i.e., Scaleway's zoned UUID format).
    Name string
    The fully qualified name of the model to look up (e.g., "meta/llama-3.1-8b-instruct:fp8"). The provider will search for a model with an exact name match in the selected region and project.
    Url string
    ModelId string
    The ID of the model to retrieve. Must be a valid UUID with locality (i.e., Scaleway's zoned UUID format).
    Name string
    The fully qualified name of the model to look up (e.g., "meta/llama-3.1-8b-instruct:fp8"). The provider will search for a model with an exact name match in the selected region and project.
    Url string
    modelId String
    The ID of the model to retrieve. Must be a valid UUID with locality (i.e., Scaleway's zoned UUID format).
    name String
    The fully qualified name of the model to look up (e.g., "meta/llama-3.1-8b-instruct:fp8"). The provider will search for a model with an exact name match in the selected region and project.
    url String
    modelId string
    The ID of the model to retrieve. Must be a valid UUID with locality (i.e., Scaleway's zoned UUID format).
    name string
    The fully qualified name of the model to look up (e.g., "meta/llama-3.1-8b-instruct:fp8"). The provider will search for a model with an exact name match in the selected region and project.
    url string
    model_id str
    The ID of the model to retrieve. Must be a valid UUID with locality (i.e., Scaleway's zoned UUID format).
    name str
    The fully qualified name of the model to look up (e.g., "meta/llama-3.1-8b-instruct:fp8"). The provider will search for a model with an exact name match in the selected region and project.
    url str
    modelId String
    The ID of the model to retrieve. Must be a valid UUID with locality (i.e., Scaleway's zoned UUID format).
    name String
    The fully qualified name of the model to look up (e.g., "meta/llama-3.1-8b-instruct:fp8"). The provider will search for a model with an exact name match in the selected region and project.
    url String

    getModel Result

    The following output properties are available:

    CreatedAt string
    Description string
    A textual description of the model (if available).
    HasEula bool
    Whether the model requires end-user license agreement acceptance before use.
    Id string
    The provider-assigned unique ID for this managed resource.
    NodesSupports List<Pulumiverse.Scaleway.Inference.Outputs.GetModelNodesSupport>
    List of supported node types and their quantization options. Each entry contains:
    ParameterSizeBits int
    Size, in bits, of the model parameters.
    ProjectId string
    Region string
    Secret string
    SizeBytes int
    Total size, in bytes, of the model archive.
    Status string
    The current status of the model (e.g., ready, error, etc.).
    Tags List<string>
    Tags associated with the model.
    UpdatedAt string
    ModelId string
    Name string
    Url string
    CreatedAt string
    Description string
    A textual description of the model (if available).
    HasEula bool
    Whether the model requires end-user license agreement acceptance before use.
    Id string
    The provider-assigned unique ID for this managed resource.
    NodesSupports []GetModelNodesSupport
    List of supported node types and their quantization options. Each entry contains:
    ParameterSizeBits int
    Size, in bits, of the model parameters.
    ProjectId string
    Region string
    Secret string
    SizeBytes int
    Total size, in bytes, of the model archive.
    Status string
    The current status of the model (e.g., ready, error, etc.).
    Tags []string
    Tags associated with the model.
    UpdatedAt string
    ModelId string
    Name string
    Url string
    createdAt String
    description String
    A textual description of the model (if available).
    hasEula Boolean
    Whether the model requires end-user license agreement acceptance before use.
    id String
    The provider-assigned unique ID for this managed resource.
    nodesSupports List<GetModelNodesSupport>
    List of supported node types and their quantization options. Each entry contains:
    parameterSizeBits Integer
    Size, in bits, of the model parameters.
    projectId String
    region String
    secret String
    sizeBytes Integer
    Total size, in bytes, of the model archive.
    status String
    The current status of the model (e.g., ready, error, etc.).
    tags List<String>
    Tags associated with the model.
    updatedAt String
    modelId String
    name String
    url String
    createdAt string
    description string
    A textual description of the model (if available).
    hasEula boolean
    Whether the model requires end-user license agreement acceptance before use.
    id string
    The provider-assigned unique ID for this managed resource.
    nodesSupports GetModelNodesSupport[]
    List of supported node types and their quantization options. Each entry contains:
    parameterSizeBits number
    Size, in bits, of the model parameters.
    projectId string
    region string
    secret string
    sizeBytes number
    Total size, in bytes, of the model archive.
    status string
    The current status of the model (e.g., ready, error, etc.).
    tags string[]
    Tags associated with the model.
    updatedAt string
    modelId string
    name string
    url string
    created_at str
    description str
    A textual description of the model (if available).
    has_eula bool
    Whether the model requires end-user license agreement acceptance before use.
    id str
    The provider-assigned unique ID for this managed resource.
    nodes_supports Sequence[GetModelNodesSupport]
    List of supported node types and their quantization options. Each entry contains:
    parameter_size_bits int
    Size, in bits, of the model parameters.
    project_id str
    region str
    secret str
    size_bytes int
    Total size, in bytes, of the model archive.
    status str
    The current status of the model (e.g., ready, error, etc.).
    tags Sequence[str]
    Tags associated with the model.
    updated_at str
    model_id str
    name str
    url str
    createdAt String
    description String
    A textual description of the model (if available).
    hasEula Boolean
    Whether the model requires end-user license agreement acceptance before use.
    id String
    The provider-assigned unique ID for this managed resource.
    nodesSupports List<Property Map>
    List of supported node types and their quantization options. Each entry contains:
    parameterSizeBits Number
    Size, in bits, of the model parameters.
    projectId String
    region String
    secret String
    sizeBytes Number
    Total size, in bytes, of the model archive.
    status String
    The current status of the model (e.g., ready, error, etc.).
    tags List<String>
    Tags associated with the model.
    updatedAt String
    modelId String
    name String
    url String

    Supporting Types

    GetModelNodesSupport

    NodeTypeName string
    The type of node supported.
    Quantizations List<Pulumiverse.Scaleway.Inference.Inputs.GetModelNodesSupportQuantization>
    A list of supported quantization options, including:
    NodeTypeName string
    The type of node supported.
    Quantizations []GetModelNodesSupportQuantization
    A list of supported quantization options, including:
    nodeTypeName String
    The type of node supported.
    quantizations List<GetModelNodesSupportQuantization>
    A list of supported quantization options, including:
    nodeTypeName string
    The type of node supported.
    quantizations GetModelNodesSupportQuantization[]
    A list of supported quantization options, including:
    node_type_name str
    The type of node supported.
    quantizations Sequence[GetModelNodesSupportQuantization]
    A list of supported quantization options, including:
    nodeTypeName String
    The type of node supported.
    quantizations List<Property Map>
    A list of supported quantization options, including:

    GetModelNodesSupportQuantization

    Allowed bool
    Whether this quantization is allowed.
    MaxContextSize int
    Maximum context length supported by this quantization.
    QuantizationBits int
    Number of bits used for quantization (e.g., 8, 16).
    Allowed bool
    Whether this quantization is allowed.
    MaxContextSize int
    Maximum context length supported by this quantization.
    QuantizationBits int
    Number of bits used for quantization (e.g., 8, 16).
    allowed Boolean
    Whether this quantization is allowed.
    maxContextSize Integer
    Maximum context length supported by this quantization.
    quantizationBits Integer
    Number of bits used for quantization (e.g., 8, 16).
    allowed boolean
    Whether this quantization is allowed.
    maxContextSize number
    Maximum context length supported by this quantization.
    quantizationBits number
    Number of bits used for quantization (e.g., 8, 16).
    allowed bool
    Whether this quantization is allowed.
    max_context_size int
    Maximum context length supported by this quantization.
    quantization_bits int
    Number of bits used for quantization (e.g., 8, 16).
    allowed Boolean
    Whether this quantization is allowed.
    maxContextSize Number
    Maximum context length supported by this quantization.
    quantizationBits Number
    Number of bits used for quantization (e.g., 8, 16).

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.28.0 published on Friday, May 16, 2025 by pulumiverse