Skip to content

csharp examples completely out of date #1890

@vpenades

Description

@vpenades

Describe the bug

csharp examples in the examples/csharp directory are completely out of date.

They use Net6.0 framework and Microsoft.ML.OnnxRuntimeGenAI 0.4.0

To Reproduce

open "genny" example

When attepting to upgrade to net10.0 and GenAI 0.11.2, I get these compile errors:

'GeneratorParams' does not contain a definition for 'SetInputIDs' and no accessible extension method 'SetInputIDs' accepting a first argument of type 'GeneratorParams' could be found (are you missing a using directive or an assembly reference?)
'Generator' does not contain a definition for 'ComputeLogits' and no accessible extension method 'ComputeLogits' accepting a first argument of type 'Generator' could be found (are you missing a using directive or an assembly reference?)
'GeneratorParams' does not contain a definition for 'SetInputSequences' and no accessible extension method 'SetInputSequences' accepting a first argument of type 'GeneratorParams' could be found (are you missing a using directive or an assembly reference?)
'Generator' does not contain a definition for 'ComputeLogits' and no accessible extension method 'ComputeLogits' accepting a first argument of type 'Generator' could be found (are you missing a using directive or an assembly reference?)

Expected behavior

examples to be up to date and working

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
windows 11

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions