Instructions to use ccore/llama-2-1.1B-Rhetorical-Agents with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ccore/llama-2-1.1B-Rhetorical-Agents with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ccore/llama-2-1.1B-Rhetorical-Agents")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("ccore/llama-2-1.1B-Rhetorical-Agents") model = AutoModelForMultimodalLM.from_pretrained("ccore/llama-2-1.1B-Rhetorical-Agents") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ccore/llama-2-1.1B-Rhetorical-Agents with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ccore/llama-2-1.1B-Rhetorical-Agents" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ccore/llama-2-1.1B-Rhetorical-Agents", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ccore/llama-2-1.1B-Rhetorical-Agents
- SGLang
How to use ccore/llama-2-1.1B-Rhetorical-Agents 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 "ccore/llama-2-1.1B-Rhetorical-Agents" \ --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": "ccore/llama-2-1.1B-Rhetorical-Agents", "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 "ccore/llama-2-1.1B-Rhetorical-Agents" \ --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": "ccore/llama-2-1.1B-Rhetorical-Agents", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ccore/llama-2-1.1B-Rhetorical-Agents with Docker Model Runner:
docker model run hf.co/ccore/llama-2-1.1B-Rhetorical-Agents
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,48 +11,6 @@ model-index:
|
|
| 11 |
|
| 12 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
-
tinyllama base 55k steps
|
| 15 |
-
|
| 16 |
|
| 17 |
-
This model is a fine-tuned version of [core6/](https://huggingface.co/core6/) on an unknown dataset.
|
| 18 |
-
It achieves the following results on the evaluation set:
|
| 19 |
-
- Loss: 1.6814
|
| 20 |
-
- Accuracy: 0.6489
|
| 21 |
-
|
| 22 |
-
## Model description
|
| 23 |
-
|
| 24 |
-
More information needed
|
| 25 |
-
|
| 26 |
-
## Intended uses & limitations
|
| 27 |
-
|
| 28 |
-
More information needed
|
| 29 |
-
|
| 30 |
-
## Training and evaluation data
|
| 31 |
-
|
| 32 |
-
More information needed
|
| 33 |
-
|
| 34 |
-
## Training procedure
|
| 35 |
-
|
| 36 |
-
### Training hyperparameters
|
| 37 |
-
|
| 38 |
-
The following hyperparameters were used during training:
|
| 39 |
-
- learning_rate: 0.001
|
| 40 |
-
- train_batch_size: 8
|
| 41 |
-
- eval_batch_size: 8
|
| 42 |
-
- seed: 42
|
| 43 |
-
- gradient_accumulation_steps: 8
|
| 44 |
-
- total_train_batch_size: 64
|
| 45 |
-
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 46 |
-
- lr_scheduler_type: linear
|
| 47 |
-
- num_epochs: 1.0
|
| 48 |
-
|
| 49 |
-
### Training results
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
### Framework versions
|
| 54 |
-
|
| 55 |
-
- Transformers 4.34.0.dev0
|
| 56 |
-
- Pytorch 2.0.1+cu117
|
| 57 |
-
- Datasets 2.14.5
|
| 58 |
-
- Tokenizers 0.13.3
|
|
|
|
| 11 |
|
| 12 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 13 |
should probably proofread and complete it, then remove this comment. -->
|
| 14 |
+
tinyllama base 55k steps test
|
| 15 |
+
test was private, i release :D
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|