Instructions to use Aliguinga01/rule_violation2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Aliguinga01/rule_violation2 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Aliguinga01/rule_violation2:F16 # Run inference directly in the terminal: llama cli -hf Aliguinga01/rule_violation2:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Aliguinga01/rule_violation2:F16 # Run inference directly in the terminal: llama cli -hf Aliguinga01/rule_violation2:F16
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Aliguinga01/rule_violation2:F16 # Run inference directly in the terminal: ./llama-cli -hf Aliguinga01/rule_violation2:F16
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Aliguinga01/rule_violation2:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Aliguinga01/rule_violation2:F16
Use Docker
docker model run hf.co/Aliguinga01/rule_violation2:F16
- LM Studio
- Jan
- Ollama
How to use Aliguinga01/rule_violation2 with Ollama:
ollama run hf.co/Aliguinga01/rule_violation2:F16
- Unsloth Studio
How to use Aliguinga01/rule_violation2 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Aliguinga01/rule_violation2 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Aliguinga01/rule_violation2 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Aliguinga01/rule_violation2 to start chatting
- Docker Model Runner
How to use Aliguinga01/rule_violation2 with Docker Model Runner:
docker model run hf.co/Aliguinga01/rule_violation2:F16
- Lemonade
How to use Aliguinga01/rule_violation2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Aliguinga01/rule_violation2:F16
Run and chat with the model
lemonade run user.rule_violation2-F16
List all available models
lemonade list
- Atomic Chat
| // | |
| // CLI argument parsing | |
| // | |
| struct common_arg { | |
| std::set<enum llama_example> examples = {LLAMA_EXAMPLE_COMMON}; | |
| std::set<enum llama_example> excludes = {}; | |
| std::vector<const char *> args; | |
| const char * value_hint = nullptr; // help text or example for arg value | |
| const char * value_hint_2 = nullptr; // for second arg value | |
| const char * env = nullptr; | |
| std::string help; | |
| bool is_sparam = false; // is current arg a sampling param? | |
| void (*handler_void) (common_params & params) = nullptr; | |
| void (*handler_string) (common_params & params, const std::string &) = nullptr; | |
| void (*handler_str_str)(common_params & params, const std::string &, const std::string &) = nullptr; | |
| void (*handler_int) (common_params & params, int) = nullptr; | |
| common_arg( | |
| const std::initializer_list<const char *> & args, | |
| const char * value_hint, | |
| const std::string & help, | |
| void (*handler)(common_params & params, const std::string &) | |
| ) : args(args), value_hint(value_hint), help(help), handler_string(handler) {} | |
| common_arg( | |
| const std::initializer_list<const char *> & args, | |
| const char * value_hint, | |
| const std::string & help, | |
| void (*handler)(common_params & params, int) | |
| ) : args(args), value_hint(value_hint), help(help), handler_int(handler) {} | |
| common_arg( | |
| const std::initializer_list<const char *> & args, | |
| const std::string & help, | |
| void (*handler)(common_params & params) | |
| ) : args(args), help(help), handler_void(handler) {} | |
| // support 2 values for arg | |
| common_arg( | |
| const std::initializer_list<const char *> & args, | |
| const char * value_hint, | |
| const char * value_hint_2, | |
| const std::string & help, | |
| void (*handler)(common_params & params, const std::string &, const std::string &) | |
| ) : args(args), value_hint(value_hint), value_hint_2(value_hint_2), help(help), handler_str_str(handler) {} | |
| common_arg & set_examples(std::initializer_list<enum llama_example> examples); | |
| common_arg & set_excludes(std::initializer_list<enum llama_example> excludes); | |
| common_arg & set_env(const char * env); | |
| common_arg & set_sparam(); | |
| bool in_example(enum llama_example ex); | |
| bool is_exclude(enum llama_example ex); | |
| bool get_value_from_env(std::string & output); | |
| bool has_value_from_env(); | |
| std::string to_string(); | |
| }; | |
| struct common_params_context { | |
| enum llama_example ex = LLAMA_EXAMPLE_COMMON; | |
| common_params & params; | |
| std::vector<common_arg> options; | |
| void(*print_usage)(int, char **) = nullptr; | |
| common_params_context(common_params & params) : params(params) {} | |
| }; | |
| // parse input arguments from CLI | |
| // if one argument has invalid value, it will automatically display usage of the specific argument (and not the full usage message) | |
| bool common_params_parse(int argc, char ** argv, common_params & params, llama_example ex, void(*print_usage)(int, char **) = nullptr); | |
| // function to be used by test-arg-parser | |
| common_params_context common_params_parser_init(common_params & params, llama_example ex, void(*print_usage)(int, char **) = nullptr); | |
| struct common_remote_params { | |
| std::vector<std::string> headers; | |
| long timeout = 0; // CURLOPT_TIMEOUT, in seconds ; 0 means no timeout | |
| long max_size = 0; // max size of the response ; unlimited if 0 ; max is 2GB | |
| }; | |
| // get remote file content, returns <http_code, raw_response_body> | |
| std::pair<long, std::vector<char>> common_remote_get_content(const std::string & url, const common_remote_params & params); | |