Instructions to use yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF") model = AutoModelForCausalLM.from_pretrained("yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF 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 yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M
- SGLang
How to use yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF with Ollama:
ollama run hf.co/yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M
- Lemonade
How to use yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Laravel-11-Llama-3.2-1B-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M
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 yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Laravel 11 Llama 3.2 1B Instruct GGUF
This model is a fine-tuned version of Meta's Llama 3.2 1B Instruct model, specifically tailored for Laravel 11 documentation and related queries. It provides more accurate and concise responses to Laravel 11 questions, offering step-by-step instructions for complex queries.
Model Details
Model Description
- Fine-tuned by: Ryan Yannelli
- Model type: Language model fine-tuned for Laravel 11 documentation
- Language(s) (NLP): English
- License: Llama 3.2
- Finetuned from model: meta-llama/Llama-3.2-1B-Instruct
Uses
Direct Use
This model is designed to assist developers with Laravel 11 related queries. It can provide quick answers to simple questions about Laravel 11 in a few sentences. For more complex questions, it offers step-by-step instructions and may ask follow-up questions for clarity.
Out-of-Scope Use
This model is specifically trained for Laravel 11 documentation and may not perform well on queries outside this domain. It should not be used for general-purpose language tasks or for documentation of other PHP frameworks or Laravel versions.
Bias, Risks, and Limitations
- The model's knowledge is limited to Laravel 11 documentation up to October 3rd, 2024.
- Given the small 1B parameter size, attention is not great with longer contexts.
- The model may not perform well on tasks outside of Laravel 11 documentation.
Recommendations
Users should verify important information or code snippets with official Laravel 11 documentation. The model should be used as an assistant rather than a definitive source of information.
How to Get Started with the Model
To get started with the model locally, you can use one of the following tools:
- LM Studio
- Jan
- vLLM
- llama.cpp
These tools allow you to run the model on your local machine. Choose the one that best fits your system requirements and preferences.
Settings
Best outputs were observed with the following settings:
- Temperature: 0.5
- Top K Sampling: 40
- Repeat penalty: 1.1
- Min P Sampling: 0.05
- Top P Sampling: 0.95
Training Details
Training Data
The model was trained on three custom datasets:
- yannelli/laravel-11-qa
- yannelli/laravel-11-qa-long-form
- yannelli/laravel-11-code-samples (private)
These datasets contain Laravel 11 documentation and related question-answer pairs.
Training Procedure
The model used a multi-stage training approach, consisting of offline data and public datasets.
Training Hyperparameters
- Training regime: SFTTrainer
- Optimizer: AdamW 8-Bit
- Learning Rate Scheduler Type: Cosine
- Learning Rate: 0.000095
- GPU: NVIDIA 3070 Ti
Environmental Impact
- Hardware Type: NVIDIA 3070 Ti GPU
- Hours used: 121
- Infrastructure: Private
- Carbon Emitted: 18.14 kg CO2 eq.
Carbon emissions were calculated using the Machine Learning Impact calculator.
Technical Specifications
Model Architecture and Objective
The model is based on the Meta Llama 3.2 1B Instruct architecture and is fine-tuned for Laravel 11 documentation tasks.
Compute Infrastructure
Hardware
NVIDIA 3070 Ti GPU
Model Card Authors
Ryan Yannelli
- Downloads last month
- 1,889
2-bit
4-bit
5-bit
8-bit
16-bit
Model tree for yannelli/Laravel-11-Llama-3.2-1B-Instruct-GGUF
Base model
meta-llama/Llama-3.2-1B-Instruct