@mlx-node/lm 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +10 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/models/model-loader.d.ts +1 -1
- package/dist/models/model-loader.d.ts.map +1 -1
- package/dist/models/model-loader.js +1 -1
- package/dist/profiling.d.ts.map +1 -1
- package/dist/profiling.js +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +1 -1
- package/package.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
15
|
export { Qwen3Model, Qwen3Tokenizer } from '@mlx-node/core';
|
|
16
|
-
export { Qwen35Model, Qwen35Model as Qwen3_5Model } from './stream';
|
|
16
|
+
export { Qwen35Model, Qwen35Model as Qwen3_5Model } from './stream.js';
|
|
17
17
|
export type { Qwen35Config, Qwen35GenerationConfig, Qwen35GenerationResult } from '@mlx-node/core';
|
|
18
|
-
export { Qwen35MoeModel, Qwen35MoeModel as Qwen3_5MoeModel } from './stream';
|
|
18
|
+
export { Qwen35MoeModel, Qwen35MoeModel as Qwen3_5MoeModel } from './stream.js';
|
|
19
19
|
export type { Qwen35MoeConfig, Qwen35MoeGenerationConfig, Qwen35MoeGenerationResult } from '@mlx-node/core';
|
|
20
20
|
export type { DType } from '@mlx-node/core';
|
|
21
21
|
export type { SamplingConfig, BatchGenerationResult } from '@mlx-node/core';
|
|
22
22
|
export type { ChatConfig, ChatResult, ChatMessage, ToolCallResult, PerformanceMetrics } from '@mlx-node/core';
|
|
23
|
-
export type { ChatStreamDelta, ChatStreamFinal, ChatStreamEvent } from './stream';
|
|
23
|
+
export type { ChatStreamDelta, ChatStreamFinal, ChatStreamEvent } from './stream.js';
|
|
24
24
|
export type { ChatStreamChunk, ChatStreamHandle } from '@mlx-node/core';
|
|
25
|
-
export { _createChatStream } from './stream';
|
|
26
|
-
export { type Qwen3Config, QWEN3_CONFIGS, type GenerationResult, type GenerationConfig, getQwen3Config, } from './models/qwen3-configs';
|
|
27
|
-
export { loadModel, detectModelType, type ModelType } from './models/model-loader';
|
|
28
|
-
export type { TrainableModel } from './interfaces';
|
|
29
|
-
export { QWEN35_CONFIGS, getQwen35Config } from './models/qwen3_5-configs';
|
|
30
|
-
export * from './tools';
|
|
31
|
-
export { enableProfiling, disableProfiling } from './profiling';
|
|
25
|
+
export { _createChatStream } from './stream.js';
|
|
26
|
+
export { type Qwen3Config, QWEN3_CONFIGS, type GenerationResult, type GenerationConfig, getQwen3Config, } from './models/qwen3-configs.js';
|
|
27
|
+
export { loadModel, detectModelType, type ModelType } from './models/model-loader.js';
|
|
28
|
+
export type { TrainableModel } from './interfaces.js';
|
|
29
|
+
export { QWEN35_CONFIGS, getQwen35Config } from './models/qwen3_5-configs.js';
|
|
30
|
+
export * from './tools/index.js';
|
|
31
|
+
export { enableProfiling, disableProfiling } from './profiling.js';
|
|
32
32
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,aAAa,CAAC;AACvE,YAAY,EAAE,YAAY,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAGnG,OAAO,EAAE,cAAc,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,aAAa,CAAC;AAChF,YAAY,EAAE,eAAe,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAK5G,YAAY,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,YAAY,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAG5E,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAG9G,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACrF,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGhD,OAAO,EACL,KAAK,WAAW,EAChB,aAAa,EACb,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,cAAc,GACf,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGtF,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAG9E,cAAc,kBAAkB,CAAC;AAGjC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,18 +14,18 @@
|
|
|
14
14
|
*/
|
|
15
15
|
// Model classes (for inference)
|
|
16
16
|
export { Qwen3Model, Qwen3Tokenizer } from '@mlx-node/core';
|
|
17
|
-
export { Qwen35Model, Qwen35Model as Qwen3_5Model } from './stream';
|
|
17
|
+
export { Qwen35Model, Qwen35Model as Qwen3_5Model } from './stream.js';
|
|
18
18
|
// MoE variant
|
|
19
|
-
export { Qwen35MoeModel, Qwen35MoeModel as Qwen3_5MoeModel } from './stream';
|
|
19
|
+
export { Qwen35MoeModel, Qwen35MoeModel as Qwen3_5MoeModel } from './stream.js';
|
|
20
20
|
// Internal: exported for testing the callback-to-AsyncGenerator bridge
|
|
21
21
|
// Not part of the public API — may change without notice
|
|
22
|
-
export { _createChatStream } from './stream';
|
|
22
|
+
export { _createChatStream } from './stream.js';
|
|
23
23
|
// Model utilities (TypeScript-only)
|
|
24
|
-
export { QWEN3_CONFIGS, getQwen3Config, } from './models/qwen3-configs';
|
|
24
|
+
export { QWEN3_CONFIGS, getQwen3Config, } from './models/qwen3-configs.js';
|
|
25
25
|
// Model loading
|
|
26
|
-
export { loadModel, detectModelType } from './models/model-loader';
|
|
27
|
-
export { QWEN35_CONFIGS, getQwen35Config } from './models/qwen3_5-configs';
|
|
26
|
+
export { loadModel, detectModelType } from './models/model-loader.js';
|
|
27
|
+
export { QWEN35_CONFIGS, getQwen35Config } from './models/qwen3_5-configs.js';
|
|
28
28
|
// Tool calling utilities
|
|
29
|
-
export * from './tools';
|
|
29
|
+
export * from './tools/index.js';
|
|
30
30
|
// Profiling API
|
|
31
|
-
export { enableProfiling, disableProfiling } from './profiling';
|
|
31
|
+
export { enableProfiling, disableProfiling } from './profiling.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Handles loading pretrained weights from MLX format or converting from HuggingFace.
|
|
5
5
|
*/
|
|
6
|
-
import type { TrainableModel } from '../interfaces';
|
|
6
|
+
import type { TrainableModel } from '../interfaces.js';
|
|
7
7
|
export type ModelType = 'qwen3' | 'qwen3_5' | 'qwen3_5_moe';
|
|
8
8
|
/**
|
|
9
9
|
* Load a language model from disk, auto-detecting architecture from config.json.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-loader.d.ts","sourceRoot":"","sources":["../../src/models/model-loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"model-loader.d.ts","sourceRoot":"","sources":["../../src/models/model-loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,CAAC;AAI5D;;GAEG;AACH,wBAAsB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAa1E;AAED,wBAAsB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAa3E"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { readFile } from 'node:fs/promises';
|
|
7
7
|
import { join } from 'node:path';
|
|
8
8
|
import { Qwen3Model } from '@mlx-node/core';
|
|
9
|
-
import { Qwen35Model, Qwen35MoeModel } from '../stream';
|
|
9
|
+
import { Qwen35Model, Qwen35MoeModel } from '../stream.js';
|
|
10
10
|
const SUPPORTED_MODEL_TYPES = new Set(['qwen3', 'qwen3_5', 'qwen3_5_moe']);
|
|
11
11
|
/**
|
|
12
12
|
* Load a language model from disk, auto-detecting architecture from config.json.
|
package/dist/profiling.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiling.d.ts","sourceRoot":"","sources":["../src/profiling.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"profiling.d.ts","sourceRoot":"","sources":["../src/profiling.ts"],"names":[],"mappings":"AAcA;;;;;;;;;GASG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAQtC;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC,CAOxD"}
|
package/dist/profiling.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { setProfilingEnabled, isProfilingEnabled, getProfilingData, resetProfilingData } from '@mlx-node/core';
|
|
2
1
|
import { writeFile } from 'node:fs/promises';
|
|
2
|
+
import { setProfilingEnabled, isProfilingEnabled, getProfilingData, resetProfilingData } from '@mlx-node/core';
|
|
3
3
|
const ENV_VAR = 'MLX_PROFILE_DECODE';
|
|
4
4
|
const envVarSet = !!process.env[ENV_VAR];
|
|
5
5
|
let exitHandlerRegistered = false;
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,cAAc,YAAY,CAAC"}
|
package/dist/tools/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mlx-node/lm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"homepage": "https://github.com/mlx-node/mlx-node",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/mlx-node/mlx-node/issues"
|
|
@@ -28,6 +28,9 @@
|
|
|
28
28
|
"test": "vite test run"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@mlx-node/core": "0.0.
|
|
31
|
+
"@mlx-node/core": "0.0.5"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/node": "@types/node@25.5.0"
|
|
32
35
|
}
|
|
33
36
|
}
|