TensorSharp is an innovative C# inference engine designed for executing large language models (LLMs) locally using GGUF model files. It offers a console application and a web-based chatbot interface, along with HTTP APIs that are compatible with Ollama and OpenAI. With support for Windows, MacOS, and Linux, TensorSharp enables efficient and effective LLM inference leveraging full GPU capabilities.
TensorSharp is a powerful C# inference engine designed for running large language models (LLMs) locally by utilizing GGUF model files. This innovative tool provides several features, including a console application, a web-based chatbot interface, and Ollama/OpenAI-compatible HTTP APIs for seamless programmatic access.
InferenceEngine is responsible for handling concurrency and optimizations within the server, ensuring efficient model usage.TensorSharp supports a range of architectures, ensuring flexibility and compatibility:
More detailed documentation about specific model capabilities and examples can be found in the provided links.
Users can quickly access the capabilities of TensorSharp by engaging with the console application for text and multimodal inference. The application supports various commands for different types of inputs, including:
# Text inference
./TensorSharp.Cli --model <model.gguf> --input prompt.txt --output result.txt
# Interactive chat (REPL) mode
./TensorSharp.Cli --model <model.gguf> --backend ggml_metal --interactive
For extensive functionality and performance metrics, users can also run batch processing or throughput benchmarks with ease.
In sum, TensorSharp is an advanced inference engine catering to developers and researchers looking to utilize large language models locally. It combines speed, performance, and flexibility in its approach to LLM inference, making it a valuable tool in the fields of AI and machine learning.
No comments yet.
Sign in to be the first to comment.