Instructions to use hisham1404/llama3.1-python-coder 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 hisham1404/llama3.1-python-coder 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 hisham1404/llama3.1-python-coder:Q8_0 # Run inference directly in the terminal: llama cli -hf hisham1404/llama3.1-python-coder:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf hisham1404/llama3.1-python-coder:Q8_0 # Run inference directly in the terminal: llama cli -hf hisham1404/llama3.1-python-coder:Q8_0
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 hisham1404/llama3.1-python-coder:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf hisham1404/llama3.1-python-coder:Q8_0
Use Docker
docker model run hf.co/hisham1404/llama3.1-python-coder:Q8_0
- Llama new
- LM Studio
- Jan
- Ollama
How to use hisham1404/llama3.1-python-coder with Ollama:
ollama run hf.co/hisham1404/llama3.1-python-coder:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use hisham1404/llama3.1-python-coder with Docker Model Runner:
docker model run hf.co/hisham1404/llama3.1-python-coder:Q8_0
- Lemonade
How to use hisham1404/llama3.1-python-coder with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull hisham1404/llama3.1-python-coder:Q8_0
Run and chat with the model
lemonade run user.llama3.1-python-coder-Q8_0
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,7 +10,7 @@ Here’s a draft of the model card with details added based on your description:
|
|
| 10 |
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# Model Card for LLaMA 3.1 8B Model (Finetuned
|
| 14 |
|
| 15 |
## Model Summary
|
| 16 |
|
|
@@ -25,7 +25,6 @@ This model is finetuned from LLaMA 3.1 8B, focusing on improving performance for
|
|
| 25 |
- **Developed by:** Hisham
|
| 26 |
- **Model type:** Transformer-based Language Model (LLaMA 3.1 variant)
|
| 27 |
- **Language(s) (NLP):** Primarily English, Python-specific vocabulary
|
| 28 |
-
- **License:** [More Information Needed]
|
| 29 |
- **Finetuned from model:** LLaMA 3.1 8B
|
| 30 |
|
| 31 |
## Uses
|
|
@@ -55,8 +54,8 @@ Users (both direct and downstream) should be aware of the risks, biases, and lim
|
|
| 55 |
```python
|
| 56 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 57 |
|
| 58 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 59 |
-
model = AutoModelForCausalLM.from_pretrained("
|
| 60 |
|
| 61 |
# Example usage
|
| 62 |
inputs = tokenizer("def my_function():", return_tensors="pt")
|
|
@@ -66,8 +65,6 @@ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
|
| 66 |
|
| 67 |
## Training Details
|
| 68 |
|
| 69 |
-
### Training Data
|
| 70 |
-
|
| 71 |
The model was finetuned using **Unsloth** framework.
|
| 72 |
|
| 73 |
|
|
@@ -106,11 +103,11 @@ The model is based on the LLaMA 3.1 8B architecture, which employs multi-head se
|
|
| 106 |
|
| 107 |
Hisham. (2024). *Finetuning LLaMA 3.1 8B with Unsloth for Python Code Generation*.
|
| 108 |
|
| 109 |
-
## More Information
|
| 110 |
|
| 111 |
For more details on fine-tuning, check out the LLaMA 3.1 model card and Hugging Face documentation.
|
| 112 |
|
| 113 |
-
## Model Card Authors
|
| 114 |
|
| 115 |
Model card authored by Hisham.
|
| 116 |
|
|
|
|
| 10 |
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# Model Card for LLaMA 3.1 8B Model (Finetuned using Unsloth)
|
| 14 |
|
| 15 |
## Model Summary
|
| 16 |
|
|
|
|
| 25 |
- **Developed by:** Hisham
|
| 26 |
- **Model type:** Transformer-based Language Model (LLaMA 3.1 variant)
|
| 27 |
- **Language(s) (NLP):** Primarily English, Python-specific vocabulary
|
|
|
|
| 28 |
- **Finetuned from model:** LLaMA 3.1 8B
|
| 29 |
|
| 30 |
## Uses
|
|
|
|
| 54 |
```python
|
| 55 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 56 |
|
| 57 |
+
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.1-8B")
|
| 58 |
+
model = AutoModelForCausalLM.from_pretrained("hisham1404/llama3.1-python-coder")
|
| 59 |
|
| 60 |
# Example usage
|
| 61 |
inputs = tokenizer("def my_function():", return_tensors="pt")
|
|
|
|
| 65 |
|
| 66 |
## Training Details
|
| 67 |
|
|
|
|
|
|
|
| 68 |
The model was finetuned using **Unsloth** framework.
|
| 69 |
|
| 70 |
|
|
|
|
| 103 |
|
| 104 |
Hisham. (2024). *Finetuning LLaMA 3.1 8B with Unsloth for Python Code Generation*.
|
| 105 |
|
| 106 |
+
## More Information
|
| 107 |
|
| 108 |
For more details on fine-tuning, check out the LLaMA 3.1 model card and Hugging Face documentation.
|
| 109 |
|
| 110 |
+
## Model Card Authors
|
| 111 |
|
| 112 |
Model card authored by Hisham.
|
| 113 |
|