Text Generation
Transformers
Safetensors
English
LoRA
4-bit precision
BF16
FlashAttn2
Pokémon
EMA
fast-training
chat
conversational
Instructions to use ogmatrixllm/arcadex-llm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ogmatrixllm/arcadex-llm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ogmatrixllm/arcadex-llm") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ogmatrixllm/arcadex-llm", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ogmatrixllm/arcadex-llm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ogmatrixllm/arcadex-llm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ogmatrixllm/arcadex-llm", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ogmatrixllm/arcadex-llm
- SGLang
How to use ogmatrixllm/arcadex-llm 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 "ogmatrixllm/arcadex-llm" \ --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": "ogmatrixllm/arcadex-llm", "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 "ogmatrixllm/arcadex-llm" \ --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": "ogmatrixllm/arcadex-llm", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ogmatrixllm/arcadex-llm with Docker Model Runner:
docker model run hf.co/ogmatrixllm/arcadex-llm
Update README.md
Browse files
README.md
CHANGED
|
@@ -25,27 +25,28 @@ base_model:
|
|
| 25 |
pipeline_tag: text-generation
|
| 26 |
---
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
-
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
|
| 40 |
-
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
|
|
|
|
|
| 25 |
pipeline_tag: text-generation
|
| 26 |
---
|
| 27 |
|
| 28 |
+
# Qwen2.5-Coder-7B LoRA 4-bit BF16 w/ FlashAttn2, short seq=512 for faster iteration
|
| 29 |
|
| 30 |
+
This is a LoRA-fused model based on **Qwen/Qwen2.5-7B-Instruct**.
|
| 31 |
|
| 32 |
+
## Model Description
|
| 33 |
|
| 34 |
+
- **Model Name**: Qwen2.5-Coder-7B LoRA 4-bit BF16 w/ FlashAttn2, short seq=512 for faster iteration
|
| 35 |
+
- **Language**: en
|
| 36 |
+
- **License**: apache-2.0
|
| 37 |
+
- **Dataset**: ogmatrixllm/pokemon-lore-instructions
|
| 38 |
+
- **Tags**: LoRA, 4-bit, BF16, FlashAttn2, Pokémon, EMA, fast-training, text-generation, chat, transformers
|
| 39 |
|
| 40 |
+
## Usage
|
| 41 |
|
| 42 |
+
```python
|
| 43 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 44 |
|
| 45 |
+
tokenizer = AutoTokenizer.from_pretrained("ogmatrixllm/arcadex-llm")
|
| 46 |
+
model = AutoModelForCausalLM.from_pretrained("ogmatrixllm/arcadex-llm")
|
| 47 |
|
| 48 |
+
prompt = "Hello, world!"
|
| 49 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
| 50 |
+
outputs = model.generate(**inputs)
|
| 51 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 52 |
+
```
|