Преглед на файлове

Add BEER-WARE license (Revision 42)

Luiz Paulo Carvalho преди 3 месеца
родител
ревизия
970fe0a974
променени са 3 файла, в които са добавени 13 реда и са изтрити 33 реда
  1. 1 0
      Cargo.toml
  2. 8 0
      LICENSE
  3. 4 33
      README.md

+ 1 - 0
Cargo.toml

@@ -2,6 +2,7 @@
 name = "intern"
 version = "0.1.0"
 edition = "2024"
+license = "BEER-WARE"
 
 [dependencies]
 clap = { version = "4", features = ["derive"] }

+ 8 - 0
LICENSE

@@ -0,0 +1,8 @@
+/*
+ * ----------------------------------------------------------------------------
+ * "THE BEER-WARE LICENSE" (Revision 42):
+ * Luiz Paulo Carvalho wrote this file. As long as you retain this notice you
+ * can do whatever you want with this stuff. If we meet some day, and you think
+ * this stuff is worth it, you can buy me a beer in return.
+ * ----------------------------------------------------------------------------
+ */

+ 4 - 33
README.md

@@ -4,22 +4,11 @@ A Rust tool that binary-searches for the optimal GPU layer count (-ngl) when run
 
 ## How it works
 
-```
-Tests different -ngl values (0..255) using binary search.
-For each candidate:
-  Spawns llama-server with that -ngl.
-  Checks if it outputs the expected response.
-Narrows down the highest valid -ngl.
-Spawns the final llama-server with best_fit - 1 to stay safe.
-```
+Tests different -ngl values (0..255) using binary search. For each candidate: Spawns llama-server with that -ngl. Checks if it outputs the expected response. Narrows down the highest valid -ngl. Spawns the final llama-server with best_fit - 1 to stay safe.
 
 ## Requirements
 
-```
-Rust (edition 2024)
-llama-server in $PATH
-GGUF model(s) under ~/guff_models
-```
+Rust (edition 2024), llama-server in $PATH, GGUF model(s) under ~/guff_models
 
 ## Build and run
 
@@ -52,30 +41,12 @@ Options:
 
 ## Model selection
 
-```
-The tool scans ~/guff_models for .gguf files.
-Lists them as:
-  a) model1.gguf
-  b) model2.gguf
-  ...
-Prompts for a letter to select.
-```
+The tool scans ~/guff_models for .gguf files, lists them as a) model1.gguf, b) model2.gguf, etc., and prompts for a letter to select.
 
 ## Behavior notes
 
-```
-During binary search:
-  Each test run's stdout/stderr is discarded.
-  Results are printed to stderr as:
-    <ngl> [ok] or <ngl> [fail]
-
-Final server:
-  Runs until interrupted (Ctrl+C).
-  Use --verbose to see its logs.
-```
+During binary search, each test run's stdout/stderr is discarded. Results are printed to stderr as `<ngl> [ok]` or `<ngl> [fail]`. The final server runs until interrupted (Ctrl+C). Use `--verbose` to see its logs.
 
 ## Credits
 
-```
 This project was built using vibecoding with Qwen 3.6 quantized (served locally), in conjunction with opencode.
-```