Skip to content

Predibase

Nuget package dotnet License: MIT Discord

Features 🔥

  • Fully generated C# SDK based on official Predibase OpenAPI specification using AutoSDK
  • Same day update to support new features
  • Updated and supported automatically if there are no breaking changes
  • All modern .NET features - nullability, trimming, NativeAOT, etc.
  • Support .Net Framework/.Net Standard 2.0

Usage

1
2
3
using Predibase;

using var client = new PredibaseClient(apiKey);

Chat Completion

Shows how to use the OpenAI-compatible chat completion endpoint to run inference on a Predibase deployment.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
using var client = new PredibaseClient(apiKey);

// Send a chat completion request to a deployment.
var response = await client.Inference.ChatCompletionAsync(
    deploymentName: DeploymentName,
    request: new ChatCompletionRequest
    {
        Messages =
        [
            new ChatMessage
            {
                Role = "user",
                Content = "What is LoRA fine-tuning?",
            },
        ],
        MaxTokens = 256,
        Temperature = 0.7f,
    });

Fine-tuning

Shows how to create and monitor LoRA fine-tuning jobs.

1
2
3
4
using var client = new PredibaseClient(apiKey);

// List all fine-tuning jobs.
var response = await client.FineTuning.ListFinetuningJobsAsync();

Support

Priority place for bugs: https://github.com/tryAGI/Predibase/issues
Priority place for ideas and general questions: https://github.com/tryAGI/Predibase/discussions
Discord: https://discord.gg/Ca2xhfBf3v

Acknowledgments

JetBrains logo

This project is supported by JetBrains through the Open Source Support Program.