Skip to content

Commit f85ab46

Browse files
prathikrPrathik Rao
andauthored
updates ort and ort-genai versions to 1.24.4 and 0.13.0 (except ort for winml remains 1.23.2.3) (#595)
- updates ort/ort-genai versions - updates core packaging to reflext new ort/ort-genai versions - removes useNightly from js sdk since we no longer need it NOTE: c# does not need updates since it gets dependencies transitively via Foundry Local Core --------- Co-authored-by: Prathik Rao <prathikrao@microsoft.com>
1 parent 6aff399 commit f85ab46

File tree

11 files changed

+22
-46
lines changed

11 files changed

+22
-46
lines changed

.pipelines/foundry-local-packaging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ parameters:
1717
- name: version
1818
displayName: 'Package version'
1919
type: string
20-
default: '0.9.0'
20+
default: '1.0.0'
2121
- name: prereleaseId
2222
displayName: 'Pre-release identifier (e.g. rc1, beta).'
2323
type: string

.pipelines/templates/build-core-steps.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ steps:
4848
</packageSources>
4949
<packageSourceMapping>
5050
<packageSource key="feed-ORT-Nightly">
51-
<package pattern="Microsoft.ML.OnnxRuntimeGenAI*" />
5251
<package pattern="Microsoft.Telemetry*" />
5352
</packageSource>
5453
<packageSource key="nuget.org">

.pipelines/templates/package-core-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ steps:
109109
$nuspec = "$nsRoot/src/FoundryLocalCore/Core/WinMLNuget.nuspec"
110110
$id = "Microsoft.AI.Foundry.Local.Core.WinML"
111111
$ortVer = $pg.OnnxRuntimeFoundryVersionForWinML
112-
$genaiVer = $pg.OnnxRuntimeGenAIWinML
112+
$genaiVer = $pg.OnnxRuntimeGenAIFoundryVersion
113113
$winAppSdkVer = $pg.WinAppSdkVersion
114-
$props = "id=$id;version=$(flcVersion);commitId=$(Build.SourceVersion);OnnxRuntimeFoundryVersion=$ortVer;OnnxRuntimeGenAIWinML=$genaiVer;WinAppSdkVersion=$winAppSdkVer"
114+
$props = "id=$id;version=$(flcVersion);commitId=$(Build.SourceVersion);OnnxRuntimeFoundryVersionForWinML=$ortVer;OnnxRuntimeGenAIFoundryVersion=$genaiVer;WinAppSdkVersion=$winAppSdkVer"
115115
} else {
116116
$nuspec = "$nsRoot/src/FoundryLocalCore/Core/NativeNuget.nuspec"
117117
$id = "Microsoft.AI.Foundry.Local.Core"

.pipelines/templates/test-cs-steps.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ steps:
6868
<configuration>
6969
<packageSources>
7070
<clear />
71+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
7172
<add key="LocalFLC" value="${{ parameters.flcNugetDir }}" />
7273
<add key="ORT-Nightly" value="https://pkgs.dev.azure.com/aiinfra/PublicPackages/_packaging/ORT-Nightly/nuget/v3/index.json" />
7374
</packageSources>

sdk/cs/src/Microsoft.AI.Foundry.Local.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<GenerateDocumentationFile Condition="'$(Configuration)' == 'Release'">true</GenerateDocumentationFile>
3030

3131
<!--
32-
Set to 'true' to use OnnxRuntimeGenAI.WinML with EP download on Windows
32+
Set to 'true' to enable EP download on Windows
3333
Command line value overrides the default value here.
3434
-->
3535
<UseWinML>false</UseWinML>

sdk/js/script/install-standard.cjs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
const os = require('os');
99
const { NUGET_FEED, ORT_NIGHTLY_FEED, runInstall } = require('./install-utils.cjs');
1010

11-
const useNightly = process.env.npm_config_nightly === 'true';
12-
1311
const ARTIFACTS = [
14-
{ name: 'Microsoft.AI.Foundry.Local.Core', version: '0.9.0-dev-202603310538-f6efa8d3', feed: ORT_NIGHTLY_FEED, nightly: useNightly },
15-
{ name: os.platform() === 'linux' ? 'Microsoft.ML.OnnxRuntime.Gpu.Linux' : 'Microsoft.ML.OnnxRuntime.Foundry', version: '1.24.3', feed: NUGET_FEED, nightly: false },
16-
{ name: 'Microsoft.ML.OnnxRuntimeGenAI.Foundry', version: '0.13.0-dev-20260319-1131106-439ca0d5', feed: ORT_NIGHTLY_FEED, nightly: useNightly },
12+
{ name: 'Microsoft.AI.Foundry.Local.Core', version: '0.9.0-dev-202603310538-f6efa8d3', feed: ORT_NIGHTLY_FEED },
13+
{ name: os.platform() === 'linux' ? 'Microsoft.ML.OnnxRuntime.Gpu.Linux' : 'Microsoft.ML.OnnxRuntime.Foundry', version: '1.24.4', feed: NUGET_FEED },
14+
{ name: 'Microsoft.ML.OnnxRuntimeGenAI.Foundry', version: '0.13.0', feed: NUGET_FEED },
1715
];
1816

1917
(async () => {

sdk/js/script/install-utils.cjs

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -104,24 +104,9 @@ async function getBaseAddress(feedUrl) {
104104
return baseAddress.endsWith('/') ? baseAddress : baseAddress + '/';
105105
}
106106

107-
async function resolveLatestVersion(feedUrl, packageName) {
108-
const baseAddress = await getBaseAddress(feedUrl);
109-
const versionsUrl = `${baseAddress}${packageName.toLowerCase()}/index.json`;
110-
const versionData = await downloadJson(versionsUrl);
111-
const versions = versionData.versions || [];
112-
if (versions.length === 0) throw new Error(`No versions found for ${packageName}`);
113-
versions.sort((a, b) => b.localeCompare(a));
114-
console.log(`[foundry-local] Latest version of ${packageName}: ${versions[0]}`);
115-
return versions[0];
116-
}
117-
118107
async function installPackage(artifact, tempDir) {
119108
const pkgName = artifact.name;
120-
let pkgVer = artifact.version;
121-
if (artifact.nightly) {
122-
console.log(` Resolving latest version for ${pkgName}...`);
123-
pkgVer = await resolveLatestVersion(artifact.feed, pkgName);
124-
}
109+
const pkgVer = artifact.version;
125110

126111
const baseAddress = await getBaseAddress(artifact.feed);
127112
const nameLower = pkgName.toLowerCase();
@@ -167,13 +152,8 @@ async function runInstall(artifacts) {
167152
}
168153

169154
if (fs.existsSync(BIN_DIR) && REQUIRED_FILES.every(f => fs.existsSync(path.join(BIN_DIR, f)))) {
170-
if (process.env.npm_config_nightly === 'true') {
171-
console.log(`[foundry-local] Nightly requested. Forcing reinstall...`);
172-
fs.rmSync(BIN_DIR, { recursive: true, force: true });
173-
} else {
174-
console.log(`[foundry-local] Native libraries already installed.`);
175-
return;
176-
}
155+
console.log(`[foundry-local] Native libraries already installed.`);
156+
return;
177157
}
178158

179159
console.log(`[foundry-local] Installing native libraries for ${RID}...`);

sdk/js/script/install-winml.cjs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77

88
const { NUGET_FEED, ORT_NIGHTLY_FEED, runInstall } = require('./install-utils.cjs');
99

10-
const useNightly = process.env.npm_config_nightly === 'true';
11-
1210
const ARTIFACTS = [
13-
{ name: 'Microsoft.AI.Foundry.Local.Core.WinML', version: '0.9.0-dev-202603310538-f6efa8d3', feed: ORT_NIGHTLY_FEED, nightly: useNightly },
14-
{ name: 'Microsoft.ML.OnnxRuntime.Foundry', version: '1.23.2.3', feed: NUGET_FEED, nightly: false },
15-
{ name: 'Microsoft.ML.OnnxRuntimeGenAI.WinML', version: '0.13.0-dev-20260319-1131106-439ca0d5', feed: ORT_NIGHTLY_FEED, nightly: useNightly },
11+
{ name: 'Microsoft.AI.Foundry.Local.Core.WinML', version: '0.9.0-dev-202603310538-f6efa8d3', feed: ORT_NIGHTLY_FEED },
12+
{ name: 'Microsoft.ML.OnnxRuntime.Foundry', version: '1.23.2.3', feed: NUGET_FEED },
13+
{ name: 'Microsoft.ML.OnnxRuntimeGenAI.Foundry', version: '0.13.0', feed: NUGET_FEED },
1614
];
1715

1816
(async () => {

sdk/python/requirements-winml.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ openai>=2.24.0
44
# WinML native binary packages from the ORT-Nightly PyPI feed.
55
foundry-local-core-winml==0.9.0.dev20260331004032
66
onnxruntime-core==1.23.2.3
7-
onnxruntime-genai-core==0.12.1
7+
onnxruntime-genai-core==0.13.0

sdk/python/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ requests>=2.32.4
33
openai>=2.24.0
44
# Standard native binary packages from the ORT-Nightly PyPI feed.
55
foundry-local-core==0.9.0.dev20260327060216
6-
onnxruntime-core==1.24.3
7-
onnxruntime-genai-core==0.12.1
6+
onnxruntime-core==1.24.4
7+
onnxruntime-genai-core==0.13.0

0 commit comments

Comments
 (0)