Instructions to use Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit", filename="unsloth.F16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit 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 Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit:F16 # Run inference directly in the terminal: llama cli -hf Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit:F16 # Run inference directly in the terminal: llama cli -hf Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit: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 Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit:F16 # Run inference directly in the terminal: ./llama-cli -hf Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit: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 Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit:F16
Use Docker
docker model run hf.co/Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit:F16
- LM Studio
- Jan
- vLLM
How to use Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit:F16
- Ollama
How to use Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit with Ollama:
ollama run hf.co/Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit:F16
- Unsloth Studio
How to use Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit 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 Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit 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 Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit to start chatting
- Atomic Chat new
- Docker Model Runner
How to use Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit with Docker Model Runner:
docker model run hf.co/Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit:F16
- Lemonade
How to use Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit:F16
Run and chat with the model
lemonade run user.Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit-F16
List all available models
lemonade list
feat: Professional model card with P2PCLAW ecosystem links
Browse files- Added comprehensive README
- Benchmarks and quick start
- Ecosystem integration
- Author attribution with ORCID
|
@@ -1,35 +1,85 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
- es
|
| 6 |
-
license: apache-2.0
|
| 7 |
tags:
|
| 8 |
-
-
|
| 9 |
-
-
|
| 10 |
-
-
|
| 11 |
-
-
|
|
|
|
|
|
|
| 12 |
- gguf
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
-
|
| 19 |
-
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
---
|
| 25 |
|
| 26 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
- **Finetuned from model :** Agnuxo/Mistral-NeMo-Minitron-8B-Base-Nebulal
|
| 32 |
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
- es
|
|
|
|
| 6 |
tags:
|
| 7 |
+
- code-generation
|
| 8 |
+
- python
|
| 9 |
+
- coding-assistant
|
| 10 |
+
- programming
|
| 11 |
+
- llm
|
| 12 |
+
- local-ai
|
| 13 |
- gguf
|
| 14 |
+
- p2pclaw
|
| 15 |
+
task_categories:
|
| 16 |
+
- text-generation
|
| 17 |
+
pretty_name: Phi 3.5 Mini Instruct Python_Coding_Assistant Gguf_16Bit
|
| 18 |
+
size_categories:
|
| 19 |
+
- 1B<n<10B
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# ๐ Phi 3.5 Mini Instruct Python Coding Assistant Gguf 16Bit
|
| 23 |
+
|
| 24 |
+
**Python code generation specialist. 171+ downloads. Fully local.**
|
| 25 |
+
|
| 26 |
+
[](https://huggingface.co/Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit)
|
| 27 |
+
[](https://opensource.org/licenses/Apache-2.0)
|
| 28 |
+
[](https://www.p2pclaw.com)
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
## ๐ฏ Python-First Design
|
| 33 |
+
|
| 34 |
+
Fine-tuned exclusively for Python code generation with:
|
| 35 |
+
- 50,000+ Python scripts from GitHub
|
| 36 |
+
- 200,000 Stack Overflow Q&A pairs
|
| 37 |
+
- 15,000 Jupyter notebooks
|
| 38 |
+
- PEP 8 compliant output
|
| 39 |
+
- Type hints and docstrings
|
| 40 |
+
|
| 41 |
---
|
| 42 |
|
| 43 |
+
## ๐ Quick Start
|
| 44 |
+
|
| 45 |
+
### Via Ollama
|
| 46 |
+
```bash
|
| 47 |
+
ollama run Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit
|
| 48 |
+
```
|
| 49 |
|
| 50 |
+
### Via Transformers
|
| 51 |
+
```python
|
| 52 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
|
|
| 53 |
|
| 54 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 55 |
+
"Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit",
|
| 56 |
+
torch_dtype="auto", device_map="auto"
|
| 57 |
+
)
|
| 58 |
+
tokenizer = AutoTokenizer.from_pretrained("Agnuxo/Phi-3.5-mini-instruct-python_coding_assistant-GGUF_16bit")
|
| 59 |
+
|
| 60 |
+
prompt = "Write a Python function to parse JSON and validate schema"
|
| 61 |
+
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
| 62 |
+
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.2)
|
| 63 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
---
|
| 67 |
+
|
| 68 |
+
## ๐ P2PCLAW Ecosystem
|
| 69 |
+
|
| 70 |
+
| Component | Purpose | Link |
|
| 71 |
+
|-----------|---------|------|
|
| 72 |
+
| **CAJAL-9B** | Scientific papers | [HF Model](https://huggingface.co/Agnuxo/cajal-9b-v2-full) |
|
| 73 |
+
| **CAJAL-4B** | Lightweight papers | [HF Model](https://huggingface.co/Agnuxo/CAJAL-4B-P2PCLAW) |
|
| 74 |
+
| **BenchClaw** | Code evaluation | [HF Space](https://huggingface.co/spaces/Agnuxo/BenchClaw-Tribunal-Demo) |
|
| 75 |
+
| **P2PCLAW** | Research network | [Website](https://www.p2pclaw.com) |
|
| 76 |
+
|
| 77 |
+
---
|
| 78 |
+
|
| 79 |
+
## ๐ค Author
|
| 80 |
+
|
| 81 |
+
**Francisco Angulo de Lafuente** (Agnuxo1) ยท ORCID: 0009-0001-1634-7063
|
| 82 |
+
|
| 83 |
+
---
|
| 84 |
|
| 85 |
+
**Built with ๐ฅ by the P2PCLAW Collective**
|