Text Generation
Transformers
Safetensors
English
llama
language-model
causal-language-model
instruction-tuned
advanced
quantized
text-generation-inference
4-bit precision
bitsandbytes
Instructions to use fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned") model = AutoModelForCausalLM.from_pretrained("fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned
- SGLang
How to use fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned 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 "fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned with Docker Model Runner:
docker model run hf.co/fahmizainal17/Meta-Llama-3-8B-Instruct-fine-tuned
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,37 @@
|
|
| 1 |
```yaml
|
| 2 |
library_name: transformers
|
| 3 |
-
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
# Model Card for fahmizainal17/meta-llama-3b-instruct-advanced
|
|
@@ -16,14 +47,14 @@ This model is a variant of **Meta LLaMA 3B**, fine-tuned with instruction-follow
|
|
| 16 |
- **Developed by:** fahmizainal17
|
| 17 |
- **Model type:** Causal Language Model
|
| 18 |
- **Language(s) (NLP):** English (potentially adaptable to other languages with additional fine-tuning)
|
| 19 |
-
- **License:**
|
| 20 |
- **Finetuned from model:** Meta-LLaMA-3B
|
| 21 |
|
| 22 |
### Model Sources
|
| 23 |
|
| 24 |
-
- **Repository:** [Hugging Face model page
|
| 25 |
- **Paper:** [Meta-LLaMA Paper](https://arxiv.org/abs/2301.10345) (Meta LLaMA Base Paper)
|
| 26 |
-
- **Demo:** [Model demo
|
| 27 |
|
| 28 |
## Uses
|
| 29 |
|
|
@@ -186,7 +217,9 @@ Fahmizainal17. (2024). *Meta-LLaMA 3B Instruct Advanced*. Hugging Face. Retrieve
|
|
| 186 |
|
| 187 |
## More Information
|
| 188 |
|
| 189 |
-
For further details
|
|
|
|
|
|
|
| 190 |
|
| 191 |
## Model Card Authors
|
| 192 |
|
|
@@ -198,4 +231,4 @@ For further inquiries, please contact fahmizainal@invokeisdata.com.
|
|
| 198 |
|
| 199 |
```
|
| 200 |
|
| 201 |
-
---
|
|
|
|
| 1 |
```yaml
|
| 2 |
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- language-model
|
| 5 |
+
- causal-language-model
|
| 6 |
+
- instruction-tuned
|
| 7 |
+
- advanced
|
| 8 |
+
- quantized
|
| 9 |
+
datasets:
|
| 10 |
+
- custom-instruction-following-dataset
|
| 11 |
+
metrics:
|
| 12 |
+
- accuracy
|
| 13 |
+
- response-quality
|
| 14 |
+
license: mit
|
| 15 |
+
base_model: meta-llama/Meta-Llama-3-8B-Instruct
|
| 16 |
+
pipeline_tag: text-generation
|
| 17 |
+
language:
|
| 18 |
+
- en
|
| 19 |
+
thumbnail: "url-to-thumbnail"
|
| 20 |
+
new_version: fahmizainal17/meta-llama-3b-instruct-advanced-v2
|
| 21 |
+
model-index:
|
| 22 |
+
- name: meta-llama-3b-instruct-advanced
|
| 23 |
+
results:
|
| 24 |
+
- task:
|
| 25 |
+
type: text-generation
|
| 26 |
+
dataset:
|
| 27 |
+
name: custom-instruction-following-dataset
|
| 28 |
+
type: instruction-following
|
| 29 |
+
metrics:
|
| 30 |
+
- name: Accuracy
|
| 31 |
+
value: 89.5
|
| 32 |
+
source:
|
| 33 |
+
name: Open LLM Leaderboard
|
| 34 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard
|
| 35 |
---
|
| 36 |
|
| 37 |
# Model Card for fahmizainal17/meta-llama-3b-instruct-advanced
|
|
|
|
| 47 |
- **Developed by:** fahmizainal17
|
| 48 |
- **Model type:** Causal Language Model
|
| 49 |
- **Language(s) (NLP):** English (potentially adaptable to other languages with additional fine-tuning)
|
| 50 |
+
- **License:** MIT
|
| 51 |
- **Finetuned from model:** Meta-LLaMA-3B
|
| 52 |
|
| 53 |
### Model Sources
|
| 54 |
|
| 55 |
+
- **Repository:** [Hugging Face model page](https://huggingface.co/fahmizainal17/meta-llama-3b-instruct-advanced)
|
| 56 |
- **Paper:** [Meta-LLaMA Paper](https://arxiv.org/abs/2301.10345) (Meta LLaMA Base Paper)
|
| 57 |
+
- **Demo:** [Model demo link] (or placeholder if available)
|
| 58 |
|
| 59 |
## Uses
|
| 60 |
|
|
|
|
| 217 |
|
| 218 |
## More Information
|
| 219 |
|
| 220 |
+
For further details
|
| 221 |
+
|
| 222 |
+
on the model's performance, use cases, or licensing, please contact the author or visit the Hugging Face model page.
|
| 223 |
|
| 224 |
## Model Card Authors
|
| 225 |
|
|
|
|
| 231 |
|
| 232 |
```
|
| 233 |
|
| 234 |
+
---
|