Instructions to use PyThaGo/LLMLit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use PyThaGo/LLMLit with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="PyThaGo/LLMLit", filename="LLMLit-0.2-8B-Instruct.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use PyThaGo/LLMLit with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf PyThaGo/LLMLit # Run inference directly in the terminal: llama-cli -hf PyThaGo/LLMLit
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf PyThaGo/LLMLit # Run inference directly in the terminal: llama-cli -hf PyThaGo/LLMLit
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 PyThaGo/LLMLit # Run inference directly in the terminal: ./llama-cli -hf PyThaGo/LLMLit
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 PyThaGo/LLMLit # Run inference directly in the terminal: ./build/bin/llama-cli -hf PyThaGo/LLMLit
Use Docker
docker model run hf.co/PyThaGo/LLMLit
- LM Studio
- Jan
- Ollama
How to use PyThaGo/LLMLit with Ollama:
ollama run hf.co/PyThaGo/LLMLit
- Unsloth Studio new
How to use PyThaGo/LLMLit 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 PyThaGo/LLMLit 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 PyThaGo/LLMLit to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for PyThaGo/LLMLit to start chatting
- Pi new
How to use PyThaGo/LLMLit with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf PyThaGo/LLMLit
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "PyThaGo/LLMLit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use PyThaGo/LLMLit with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf PyThaGo/LLMLit
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default PyThaGo/LLMLit
Run Hermes
hermes
- Docker Model Runner
How to use PyThaGo/LLMLit with Docker Model Runner:
docker model run hf.co/PyThaGo/LLMLit
- Lemonade
How to use PyThaGo/LLMLit with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull PyThaGo/LLMLit
Run and chat with the model
lemonade run user.LLMLit-{{QUANT_TAG}}List all available models
lemonade list
Cristian Sas commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -71,6 +71,38 @@ De ce să alegi LLMLit?
|
|
| 71 |
|
| 72 |
🔹 **Acest sistem este ideal pentru rularea LLMLit fără probleme, oferind un echilibru perfect între performanță și eficiență.**
|
| 73 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
---
|
| 75 |
### **Coming Soon: Modele de Generare Imagine și Video 🎨🎬**
|
| 76 |
---
|
|
@@ -196,33 +228,6 @@ LLMLit poate fi optimizat pentru:
|
|
| 196 |
|
| 197 |
---
|
| 198 |
|
| 199 |
-
## **🚀 Cum să începi cu LLMLit**
|
| 200 |
-
|
| 201 |
-
📌 [Ghid de Instalare: LM Studio + LLMLit pe Windows](https://huggingface.co/LLMLit/LLMLit/discussions/3#679bfd7646a549e46dd7f784)
|
| 202 |
-
|
| 203 |
-
📌 [Ghid de Instalare: Ollama și să rulezi LLMLit de pe Hugging Face](https://huggingface.co/LLMLit/LLMLit/discussions/3#679bfd7646a549e46dd7f784)
|
| 204 |
-
|
| 205 |
-
📌 [Ghid de Pași pentru implementarea RAG cu LLMLit pe Hugging Face 🚀 ](https://huggingface.co/LLMLit/LLMLit/discussions/2#679bfd1a9141a5524a4994b7)
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
Pentru a utiliza LLMLit, instalează librăriile necesare și încarcă modelul:
|
| 209 |
-
|
| 210 |
-
```python
|
| 211 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 212 |
-
|
| 213 |
-
# Încarcă modelul și tokenizer-ul
|
| 214 |
-
model = AutoModelForCausalLM.from_pretrained("llmlit/LLMLit-0.2-8B-Instruct")
|
| 215 |
-
tokenizer = AutoTokenizer.from_pretrained("llmlit/LLMLit-0.2-8B-Instruct")
|
| 216 |
-
|
| 217 |
-
# Generează text
|
| 218 |
-
inputs = tokenizer("Your prompt here", return_tensors="pt")
|
| 219 |
-
outputs = model.generate(**inputs, max_length=100)
|
| 220 |
-
```
|
| 221 |
-
|
| 222 |
-
---
|
| 223 |
-
|
| 224 |
-
Sper că acest ghid îți va fi de ajutor! 😊
|
| 225 |
-
|
| 226 |
|
| 227 |
Multe surprize în viitor! 🎁✨
|
| 228 |
Suntem super entuziasmați să vă anunțăm că, în curând, vom adăuga multe freebies și documentație detaliată pentru toți dezvoltatorii care vor să învețe și să colaboreze cu noi! 📚🎉
|
|
|
|
| 71 |
|
| 72 |
🔹 **Acest sistem este ideal pentru rularea LLMLit fără probleme, oferind un echilibru perfect între performanță și eficiență.**
|
| 73 |
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
## **🚀 Cum să începi cu LLMLit**
|
| 77 |
+
|
| 78 |
+
📌 [Ghid de Instalare: LM Studio + LLMLit pe Windows](https://huggingface.co/LLMLit/LLMLit/discussions/3#679bfd7646a549e46dd7f784)
|
| 79 |
+
|
| 80 |
+
📌 [Ghid de Instalare: Ollama și să rulezi LLMLit de pe Hugging Face](https://huggingface.co/LLMLit/LLMLit/discussions/3#679bfd7646a549e46dd7f784)
|
| 81 |
+
|
| 82 |
+
📌 [Ghid de Pași pentru implementarea RAG cu LLMLit pe Hugging Face 🚀 ](https://huggingface.co/LLMLit/LLMLit/discussions/2#679bfd1a9141a5524a4994b7)
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
Pentru a utiliza LLMLit, instalează librăriile necesare și încarcă modelul:
|
| 86 |
+
|
| 87 |
+
```python
|
| 88 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 89 |
+
|
| 90 |
+
# Încarcă modelul și tokenizer-ul
|
| 91 |
+
model = AutoModelForCausalLM.from_pretrained("llmlit/LLMLit-0.2-8B-Instruct")
|
| 92 |
+
tokenizer = AutoTokenizer.from_pretrained("llmlit/LLMLit-0.2-8B-Instruct")
|
| 93 |
+
|
| 94 |
+
# Generează text
|
| 95 |
+
inputs = tokenizer("Your prompt here", return_tensors="pt")
|
| 96 |
+
outputs = model.generate(**inputs, max_length=100)
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
---
|
| 100 |
+
|
| 101 |
+
Sper că acest ghid îți va fi de ajutor! 😊
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
|
| 106 |
---
|
| 107 |
### **Coming Soon: Modele de Generare Imagine și Video 🎨🎬**
|
| 108 |
---
|
|
|
|
| 228 |
|
| 229 |
---
|
| 230 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
|
| 232 |
Multe surprize în viitor! 🎁✨
|
| 233 |
Suntem super entuziasmați să vă anunțăm că, în curând, vom adăuga multe freebies și documentație detaliată pentru toți dezvoltatorii care vor să învețe și să colaboreze cu noi! 📚🎉
|