Skip to content

Commit

Permalink
Merge pull request #1 from Zambonilli/feature/prototype
Browse files Browse the repository at this point in the history
Feature/prototype
  • Loading branch information
Zambonilli authored Dec 30, 2023
2 parents 301a9c5 + 159230b commit e30b5ee
Show file tree
Hide file tree
Showing 8 changed files with 4,592 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore artifacts:
.vscode
dist
node_modules
27 changes: 27 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${file}",
"args":[
"--modelPath",
"<modelPath>",
"--inputDir",
"<inputDir>",
"--outDir",
"<outDir>",
"--gpuLayers",
"<gpuLayers>"
]
}
]
}
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Contributing Guidelines

Thank you for your interest in contributing. At this time, the project is still in it's infancy. So, there's not a lot of structure or guard rails in place for contributions. However, if you have an idea or want to help in any way, please feel free to open an issue, send a message or create a PR against main.
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,33 @@
# genai-gamelist
Use generative AI to create retropie gamelist.xml files.
genai-gamelist is a Command Line tool for creating retropie gamelist.xml files.

## Local Development

### Setup

1. clone this repo
2. install nodejs 18.x
3. npm install
4. **optional** compile node-llama-cpp for [CUDA](https://withcatai.github.io/node-llama-cpp/guide/CUDA)
5. download meta's [llama2](https://ai.meta.com/llama/) LLM
6. convert llama2's to gguf file using [llama-cpp](https://github.com/ggerganov/llama.cpp#prepare-data--run)

### Building

```bash
npm run format
npm run build
```

### Running

```bash
node dist/index.js \
--modelPath <modelPath> \
--inputDir <inputDir> \
--outDir <outDir>
```

### Debugging

A vscode debugging file is pushed with this repo. The `Launch Program` profile will launch the cli with default switches and allow you to debug the cli.
Loading

0 comments on commit e30b5ee

Please sign in to comment.