Instructions to use APMIC/caigun-lora-model-34B-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use APMIC/caigun-lora-model-34B-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="APMIC/caigun-lora-model-34B-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("APMIC/caigun-lora-model-34B-v2") model = AutoModelForCausalLM.from_pretrained("APMIC/caigun-lora-model-34B-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use APMIC/caigun-lora-model-34B-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "APMIC/caigun-lora-model-34B-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "APMIC/caigun-lora-model-34B-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/APMIC/caigun-lora-model-34B-v2
- SGLang
How to use APMIC/caigun-lora-model-34B-v2 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 "APMIC/caigun-lora-model-34B-v2" \ --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": "APMIC/caigun-lora-model-34B-v2", "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 "APMIC/caigun-lora-model-34B-v2" \ --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": "APMIC/caigun-lora-model-34B-v2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use APMIC/caigun-lora-model-34B-v2 with Docker Model Runner:
docker model run hf.co/APMIC/caigun-lora-model-34B-v2
Commit ·
913eec9
1
Parent(s): a401ccc
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-nd-4.0
|
| 3 |
+
---
|
| 4 |
+
This is model finetuned on Orca style dataset.
|
| 5 |
+
|
| 6 |
+
Model Details:
|
| 7 |
+
|
| 8 |
+
Model Name: caigun-lora-model-33B
|
| 9 |
+
|
| 10 |
+
Model Version: 1.0
|
| 11 |
+
|
| 12 |
+
Date Created: 2023/12/21
|
| 13 |
+
|
| 14 |
+
Model Overview:
|
| 15 |
+
|
| 16 |
+
Intended Use:
|
| 17 |
+
caigun-lora-model-33B is a LLM designed for various purpose.
|
| 18 |
+
|
| 19 |
+
Training Data:
|
| 20 |
+
Orca style dataset
|
| 21 |
+
|
| 22 |
+
Model Architecture:
|
| 23 |
+
It is based on LLaMA architecture.
|
| 24 |
+
|
| 25 |
+
Training Procedure:
|
| 26 |
+
[Stay tuned for updates]
|
| 27 |
+
|
| 28 |
+
Model Performance:
|
| 29 |
+
[Stay tuned for updates]
|
| 30 |
+
|
| 31 |
+
Potential Risks:
|
| 32 |
+
It's important to consider ethical implications related to the use of our model.
|
| 33 |
+
|
| 34 |
+
Updates and Version History:
|
| 35 |
+
Version 1.0: finetuned on fake news detection.
|
| 36 |
+
Version 2.0: finetuned on Orca style dataset.
|