Fix TOML parsing errors in pyproject.toml for scikit-build configuration (#27)
* Update wheel configuration in pyproject.toml to include package tree * Added python dependency and shell globbing for metal command
This commit is contained in:
@@ -130,6 +130,7 @@ This repository provides a collection of reference implementations:
|
|||||||
|
|
||||||
### Requirements
|
### Requirements
|
||||||
|
|
||||||
|
- python 3.12
|
||||||
- On macOS: Install the Xcode CLI tools --> `xcode-select --install`
|
- On macOS: Install the Xcode CLI tools --> `xcode-select --install`
|
||||||
- On Linux: These reference implementations require CUDA
|
- On Linux: These reference implementations require CUDA
|
||||||
- On Windows: These reference implementations have not been tested on Windows. Try using solutions like Ollama if you are trying to run the model locally.
|
- On Windows: These reference implementations have not been tested on Windows. Try using solutions like Ollama if you are trying to run the model locally.
|
||||||
@@ -151,7 +152,7 @@ If you want to modify the code or try the metal implementation set the project u
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
git clone https://github.com/openai/gpt-oss.git
|
git clone https://github.com/openai/gpt-oss.git
|
||||||
pip install -e .[metal]
|
pip install -e ".[metal]"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Download the model
|
## Download the model
|
||||||
|
|||||||
@@ -42,11 +42,10 @@ packages = ["gpt_oss"]
|
|||||||
|
|
||||||
[tool.scikit-build]
|
[tool.scikit-build]
|
||||||
cmake.source-dir = "." # pick up the root CMakeLists.txt
|
cmake.source-dir = "." # pick up the root CMakeLists.txt
|
||||||
wheel.packages = ["gpt_oss"] # copy the whole Python package tree
|
|
||||||
cmake.args = [
|
cmake.args = [
|
||||||
"-DGPTOSS_BUILD_PYTHON=ON",
|
"-DGPTOSS_BUILD_PYTHON=ON",
|
||||||
"-DCMAKE_BUILD_TYPE=Release",
|
"-DCMAKE_BUILD_TYPE=Release",
|
||||||
"-DBUILD_SHARED_LIBS=OFF",
|
"-DBUILD_SHARED_LIBS=OFF",
|
||||||
]
|
]
|
||||||
[tool.scikit-build.wheel]
|
[tool.scikit-build.wheel]
|
||||||
plat-name = "manylinux_2_17_x86_64"
|
packages = ["gpt_oss"] # copy the whole Python package tree
|
||||||
|
|||||||
Reference in New Issue
Block a user