--- license: apache-2.0 language: - en task_categories: - text-generation tags: - nushell - tool-calling - synthetic - shell size_categories: - 1K` | | `expected` | What the reference call prints when run in that project | ## Scoring A generated call is correct only if running it in the project returns `expected` (JSON compared by content, text compared exactly). The repository has the runner and `scripts/eval_endpoint.py`, which scores any OpenAI-compatible endpoint the same way. ## Known flaws - 268 of the 1,203 requests are the composed fallback, which lists the steps stiffly. - About 4% of requests repeat part of the instruction the request-writing model was given. - 6 of the held-out requests do not contain what their reference call needs. - Some values depend on the machine they were generated on: the order `glob` returns entries, the size `ls` reports for a directory, and the time zone of modified times. - One reference value per request: another reasonable answer counts as wrong. ## Links - Code, notebook and how everything was made: [maxtheman/nushell-lfm](https://github.com/maxtheman/nushell-lfm) - LoRA adapter (MLX): [maxhugger/nushell-lfm3-1.7b-lora](https://huggingface.co/maxhugger/nushell-lfm3-1.7b-lora) - ONNX build for the browser: [maxhugger/nushell-lfm3-1.7b-onnx](https://huggingface.co/maxhugger/nushell-lfm3-1.7b-onnx) - Dataset: [maxhugger/nushell-tool-calls](https://huggingface.co/datasets/maxhugger/nushell-tool-calls) - Demo in the browser: [nushell-lfm-demo](https://huggingface.co/spaces/maxhugger/nushell-lfm-demo) - Nushell in WebAssembly on its own: [nu-wasm](https://huggingface.co/spaces/maxhugger/nu-wasm) ## Sources Base model: [LiquidAI/LFM3-1.7B](https://huggingface.co/LiquidAI/LFM3-1.7B). Method: Hu et al., *LoRA: Low-Rank Adaptation of Large Language Models*, ICLR 2022 (arXiv:2106.09685). Commands and their signatures: [Nushell](https://github.com/nushell/nushell) 0.117.0. Sampling weights: the Nushell book and cookbook; NL2Bash (Lin et al., LREC 2018); spignelon/bash_history; Shell Aliases on GitHub (Schröder & Cito, 2022). The full list is in the repository's `CITATIONS.md`.