Instructions to use turtle170/MicroAtlas-V1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use turtle170/MicroAtlas-V1 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-mini-4k-instruct") model = PeftModel.from_pretrained(base_model, "turtle170/MicroAtlas-V1") - Transformers
How to use turtle170/MicroAtlas-V1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="turtle170/MicroAtlas-V1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("turtle170/MicroAtlas-V1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use turtle170/MicroAtlas-V1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "turtle170/MicroAtlas-V1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "turtle170/MicroAtlas-V1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/turtle170/MicroAtlas-V1
- SGLang
How to use turtle170/MicroAtlas-V1 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 "turtle170/MicroAtlas-V1" \ --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": "turtle170/MicroAtlas-V1", "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 "turtle170/MicroAtlas-V1" \ --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": "turtle170/MicroAtlas-V1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use turtle170/MicroAtlas-V1 with Docker Model Runner:
docker model run hf.co/turtle170/MicroAtlas-V1
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,33 +6,58 @@ tags:
|
|
| 6 |
- base_model:adapter:microsoft/Phi-3-mini-4k-instruct
|
| 7 |
- lora
|
| 8 |
- transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
# Model Card for Model ID
|
| 12 |
|
| 13 |
-
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
## Model Details
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
### Model Description
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
-
- **Developed by:**
|
| 26 |
-
- **
|
| 27 |
-
- **
|
| 28 |
-
- **
|
| 29 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 30 |
-
- **License:** [More Information Needed]
|
| 31 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 32 |
|
| 33 |
### Model Sources [optional]
|
| 34 |
|
| 35 |
-
<!-- Provide the basic
|
| 36 |
|
| 37 |
- **Repository:** [More Information Needed]
|
| 38 |
- **Paper [optional]:** [More Information Needed]
|
|
|
|
| 6 |
- base_model:adapter:microsoft/Phi-3-mini-4k-instruct
|
| 7 |
- lora
|
| 8 |
- transformers
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
datasets:
|
| 11 |
+
- teknium/OpenHermes-2.5
|
| 12 |
+
- Magpie-Align/Magpie-Phi3-Pro-300K-Filtered
|
| 13 |
+
language:
|
| 14 |
+
- en
|
| 15 |
---
|
| 16 |
|
| 17 |
# Model Card for Model ID
|
| 18 |
|
| 19 |
+
Phi-3-Mini-OpenHermes-Magpie-V1 is a general purpose model trained on both the teknium/OpenHermes-2.5 dataset and the Magpie-Align/Phi3-Pro-300K-Filtered dataset
|
| 20 |
+
and designed to provide speed, efficiency, and intelligence.
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
## Model Details
|
| 25 |
+
OpenHermes dataset:
|
| 26 |
+
1 Epoch
|
| 27 |
+
8 Batch Size
|
| 28 |
+
1 Gradient Accumulation
|
| 29 |
+
5e-5 LR
|
| 30 |
+
16 LoRa r
|
| 31 |
+
32 LoRa Alpha
|
| 32 |
+
300 Warmup steps
|
| 33 |
+
500 Eval steps
|
| 34 |
+
Trained only on Attention layers.
|
| 35 |
+
|
| 36 |
+
Magpie dataset:
|
| 37 |
+
1 Epoch
|
| 38 |
+
16 Batch Size
|
| 39 |
+
1 Gradient Accumulation
|
| 40 |
+
1e-4 LR
|
| 41 |
+
16 LoRa r
|
| 42 |
+
32 LoRa Alpha
|
| 43 |
+
150 Warmup steps
|
| 44 |
+
500 Eval steps
|
| 45 |
+
Trained with Gate, Up, and Down layers.
|
| 46 |
|
| 47 |
### Model Description
|
| 48 |
|
| 49 |
+
This model excels at creating bullet point formatting, while still mantaining
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
+
- **Developed by:** Turtle170 (anonymous
|
| 54 |
+
- **Language(s) (NLP):** English
|
| 55 |
+
- **License:** apache-2.0
|
| 56 |
+
- **Finetuned from model :** Phi-3-Mini-4k-Instruct with turtle170/Phi-3-Mini-OpenHermes-V1 adapters
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
### Model Sources [optional]
|
| 59 |
|
| 60 |
+
<!-- Provide the basic
|
| 61 |
|
| 62 |
- **Repository:** [More Information Needed]
|
| 63 |
- **Paper [optional]:** [More Information Needed]
|