-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e2d4f2
commit f230e02
Showing
11 changed files
with
1,064 additions
and
747 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Mscc.GenerativeAI | ||
{ | ||
public class CreateTunedModelRequest | ||
{ | ||
public string DisplayName { get; set; } | ||
public string BaseModel { get; set; } | ||
public TuningTask TuningTask { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Diagnostics; | ||
|
||
namespace Mscc.GenerativeAI | ||
{ | ||
public class CreateTunedModelResponse | ||
{ | ||
public string Name { get; set; } | ||
public CreateTunedModelMetadata Metadata { get; set; } | ||
} | ||
|
||
[DebuggerDisplay("{TunedModel})")] | ||
public class CreateTunedModelMetadata | ||
{ | ||
public string Type { get; set; } | ||
public int TotalSteps { get; set; } | ||
public string TunedModel { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Mscc.GenerativeAI | ||
{ | ||
public class HyperParameters | ||
{ | ||
public int BatchSize { get; set; } | ||
public float LearningRate { get; set; } | ||
public int EpochCount { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#if NET472_OR_GREATER || NETSTANDARD2_0 | ||
using System; | ||
#endif | ||
using System.Diagnostics; | ||
|
||
namespace Mscc.GenerativeAI | ||
{ | ||
[DebuggerDisplay("{Step}: ({Epoch,nq} - {ComputeTime,nq}")] | ||
public class Snapshot | ||
{ | ||
public int Step { get; set; } | ||
public float? MeanLoss { get; set; } | ||
public DateTime ComputeTime { get; set; } | ||
public int? Epoch { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#if NET472_OR_GREATER || NETSTANDARD2_0 | ||
using System.Collections.Generic; | ||
#endif | ||
using System.Diagnostics; | ||
|
||
namespace Mscc.GenerativeAI | ||
{ | ||
public class TrainingData | ||
{ | ||
public TrainingDataExamples Examples { get; set; } | ||
} | ||
|
||
public class TrainingDataExamples | ||
{ | ||
public List<TrainingDataExample> Examples { get; set; } | ||
} | ||
|
||
[DebuggerDisplay("Input: {TextInput,nq} - Output: {Output,nq}")] | ||
public class TrainingDataExample | ||
{ | ||
public string TextInput { get; set; } | ||
public string Output { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#if NET472_OR_GREATER || NETSTANDARD2_0 | ||
using System; | ||
using System.Collections.Generic; | ||
#endif | ||
using System.Diagnostics; | ||
|
||
namespace Mscc.GenerativeAI | ||
{ | ||
public class ListTunedModelResponse | ||
{ | ||
public List<ModelResponse> TunedModels { get; set; } | ||
} | ||
|
||
[DebuggerDisplay("{DisplayName} ({Name})")] | ||
public class TunedModelResponse | ||
{ | ||
public string Name { get; set; } | ||
public string BaseModel { get; set; } | ||
public string DisplayName { get; set; } | ||
public string State { get; set; } | ||
public DateTime CreateTime { get; set; } | ||
public DateTime UpdateTime { get; set; } | ||
public TuningTask TuningTask { get; set; } | ||
public float Temperature { get; set; } | ||
public float TopP { get; set; } | ||
public int TopK { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#if NET472_OR_GREATER || NETSTANDARD2_0 | ||
using System; | ||
using System.Collections.Generic; | ||
#endif | ||
|
||
namespace Mscc.GenerativeAI | ||
{ | ||
public class TuningTask | ||
{ | ||
public DateTime? StartTime { get; set; } | ||
public DateTime? CompleteTime { get; set; } | ||
public List<Snapshot>? Snapshots { get; set; } | ||
public HyperParameters? Hyperparameters { get; set; } | ||
public TrainingData? TrainingData { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters