Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pipelines/foundry-local-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ parameters:
- name: version
displayName: 'Package version'
type: string
default: '0.9.0'
default: '1.0.0'
- name: prereleaseId
displayName: 'Pre-release identifier (e.g. rc1, beta).'
type: string
Expand Down
1 change: 0 additions & 1 deletion .pipelines/templates/build-core-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ steps:
</packageSources>
<packageSourceMapping>
<packageSource key="feed-ORT-Nightly">
<package pattern="Microsoft.ML.OnnxRuntimeGenAI*" />
<package pattern="Microsoft.Telemetry*" />
</packageSource>
<packageSource key="nuget.org">
Expand Down
4 changes: 2 additions & 2 deletions .pipelines/templates/package-core-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ steps:
$nuspec = "$nsRoot/src/FoundryLocalCore/Core/WinMLNuget.nuspec"
$id = "Microsoft.AI.Foundry.Local.Core.WinML"
$ortVer = $pg.OnnxRuntimeFoundryVersionForWinML
$genaiVer = $pg.OnnxRuntimeGenAIWinML
$genaiVer = $pg.OnnxRuntimeGenAIFoundryVersion
$winAppSdkVer = $pg.WinAppSdkVersion
$props = "id=$id;version=$(flcVersion);commitId=$(Build.SourceVersion);OnnxRuntimeFoundryVersion=$ortVer;OnnxRuntimeGenAIWinML=$genaiVer;WinAppSdkVersion=$winAppSdkVer"
$props = "id=$id;version=$(flcVersion);commitId=$(Build.SourceVersion);OnnxRuntimeFoundryVersionForWinML=$ortVer;OnnxRuntimeGenAIFoundryVersion=$genaiVer;WinAppSdkVersion=$winAppSdkVer"
} else {
$nuspec = "$nsRoot/src/FoundryLocalCore/Core/NativeNuget.nuspec"
$id = "Microsoft.AI.Foundry.Local.Core"
Expand Down
1 change: 1 addition & 0 deletions .pipelines/templates/test-cs-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ steps:
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="LocalFLC" value="${{ parameters.flcNugetDir }}" />
<add key="ORT-Nightly" value="https://pkgs.dev.azure.com/aiinfra/PublicPackages/_packaging/ORT-Nightly/nuget/v3/index.json" />
</packageSources>
Expand Down
2 changes: 1 addition & 1 deletion sdk/cs/src/Microsoft.AI.Foundry.Local.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<GenerateDocumentationFile Condition="'$(Configuration)' == 'Release'">true</GenerateDocumentationFile>

<!--
Set to 'true' to use OnnxRuntimeGenAI.WinML with EP download on Windows
Set to 'true' to enable EP download on Windows
Command line value overrides the default value here.
-->
<UseWinML>false</UseWinML>
Expand Down
8 changes: 3 additions & 5 deletions sdk/js/script/install-standard.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
const os = require('os');
const { NUGET_FEED, ORT_NIGHTLY_FEED, runInstall } = require('./install-utils.cjs');

const useNightly = process.env.npm_config_nightly === 'true';

const ARTIFACTS = [
{ name: 'Microsoft.AI.Foundry.Local.Core', version: '0.9.0-dev-202603310538-f6efa8d3', feed: ORT_NIGHTLY_FEED, nightly: useNightly },
{ name: os.platform() === 'linux' ? 'Microsoft.ML.OnnxRuntime.Gpu.Linux' : 'Microsoft.ML.OnnxRuntime.Foundry', version: '1.24.3', feed: NUGET_FEED, nightly: false },
{ name: 'Microsoft.ML.OnnxRuntimeGenAI.Foundry', version: '0.13.0-dev-20260319-1131106-439ca0d5', feed: ORT_NIGHTLY_FEED, nightly: useNightly },
{ name: 'Microsoft.AI.Foundry.Local.Core', version: '0.9.0-dev-202603310538-f6efa8d3', feed: ORT_NIGHTLY_FEED },
{ name: os.platform() === 'linux' ? 'Microsoft.ML.OnnxRuntime.Gpu.Linux' : 'Microsoft.ML.OnnxRuntime.Foundry', version: '1.24.4', feed: NUGET_FEED },
{ name: 'Microsoft.ML.OnnxRuntimeGenAI.Foundry', version: '0.13.0', feed: NUGET_FEED },
];

(async () => {
Expand Down
26 changes: 3 additions & 23 deletions sdk/js/script/install-utils.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -104,24 +104,9 @@ async function getBaseAddress(feedUrl) {
return baseAddress.endsWith('/') ? baseAddress : baseAddress + '/';
}

async function resolveLatestVersion(feedUrl, packageName) {
const baseAddress = await getBaseAddress(feedUrl);
const versionsUrl = `${baseAddress}${packageName.toLowerCase()}/index.json`;
const versionData = await downloadJson(versionsUrl);
const versions = versionData.versions || [];
if (versions.length === 0) throw new Error(`No versions found for ${packageName}`);
versions.sort((a, b) => b.localeCompare(a));
console.log(`[foundry-local] Latest version of ${packageName}: ${versions[0]}`);
return versions[0];
}

async function installPackage(artifact, tempDir) {
const pkgName = artifact.name;
let pkgVer = artifact.version;
if (artifact.nightly) {
console.log(` Resolving latest version for ${pkgName}...`);
pkgVer = await resolveLatestVersion(artifact.feed, pkgName);
}
const pkgVer = artifact.version;

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

if (fs.existsSync(BIN_DIR) && REQUIRED_FILES.every(f => fs.existsSync(path.join(BIN_DIR, f)))) {
if (process.env.npm_config_nightly === 'true') {
console.log(`[foundry-local] Nightly requested. Forcing reinstall...`);
fs.rmSync(BIN_DIR, { recursive: true, force: true });
} else {
console.log(`[foundry-local] Native libraries already installed.`);
return;
}
console.log(`[foundry-local] Native libraries already installed.`);
return;
}

console.log(`[foundry-local] Installing native libraries for ${RID}...`);
Expand Down
8 changes: 3 additions & 5 deletions sdk/js/script/install-winml.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@

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

const useNightly = process.env.npm_config_nightly === 'true';

const ARTIFACTS = [
{ name: 'Microsoft.AI.Foundry.Local.Core.WinML', version: '0.9.0-dev-202603310538-f6efa8d3', feed: ORT_NIGHTLY_FEED, nightly: useNightly },
{ name: 'Microsoft.ML.OnnxRuntime.Foundry', version: '1.23.2.3', feed: NUGET_FEED, nightly: false },
{ name: 'Microsoft.ML.OnnxRuntimeGenAI.WinML', version: '0.13.0-dev-20260319-1131106-439ca0d5', feed: ORT_NIGHTLY_FEED, nightly: useNightly },
{ name: 'Microsoft.AI.Foundry.Local.Core.WinML', version: '0.9.0-dev-202603310538-f6efa8d3', feed: ORT_NIGHTLY_FEED },
{ name: 'Microsoft.ML.OnnxRuntime.Foundry', version: '1.23.2.3', feed: NUGET_FEED },
{ name: 'Microsoft.ML.OnnxRuntimeGenAI.Foundry', version: '0.13.0', feed: NUGET_FEED },
];

(async () => {
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/requirements-winml.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ openai>=2.24.0
# WinML native binary packages from the ORT-Nightly PyPI feed.
foundry-local-core-winml==0.9.0.dev20260331004032
onnxruntime-core==1.23.2.3
onnxruntime-genai-core==0.12.1
onnxruntime-genai-core==0.13.0
4 changes: 2 additions & 2 deletions sdk/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ requests>=2.32.4
openai>=2.24.0
# Standard native binary packages from the ORT-Nightly PyPI feed.
foundry-local-core==0.9.0.dev20260327060216
onnxruntime-core==1.24.3
onnxruntime-genai-core==0.12.1
onnxruntime-core==1.24.4
onnxruntime-genai-core==0.13.0
10 changes: 5 additions & 5 deletions sdk/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const ORT_NIGHTLY_FEED: &str =
"https://pkgs.dev.azure.com/aiinfra/PublicPackages/_packaging/ORT-Nightly/nuget/v3/index.json";

const CORE_VERSION: &str = "0.9.0.8-rc3";
const ORT_VERSION: &str = "1.24.3";
const GENAI_VERSION: &str = "0.13.0-dev-20260319-1131106-439ca0d5";
const ORT_VERSION: &str = "1.24.4";
const GENAI_VERSION: &str = "0.13.0";

const WINML_ORT_VERSION: &str = "1.23.2.3";

Expand Down Expand Up @@ -62,9 +62,9 @@ fn get_packages(rid: &str) -> Vec<NuGetPackage> {
feed_url: NUGET_FEED,
});
packages.push(NuGetPackage {
name: "Microsoft.ML.OnnxRuntimeGenAI.WinML",
name: "Microsoft.ML.OnnxRuntimeGenAI.Foundry",
version: GENAI_VERSION.to_string(),
feed_url: ORT_NIGHTLY_FEED,
feed_url: NUGET_FEED,
});
} else {
packages.push(NuGetPackage {
Expand All @@ -90,7 +90,7 @@ fn get_packages(rid: &str) -> Vec<NuGetPackage> {
packages.push(NuGetPackage {
name: "Microsoft.ML.OnnxRuntimeGenAI.Foundry",
version: GENAI_VERSION.to_string(),
feed_url: ORT_NIGHTLY_FEED,
feed_url: NUGET_FEED,
});
}

Expand Down
Loading