Instructions to use jeiku/Orthocopter_8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jeiku/Orthocopter_8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jeiku/Orthocopter_8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jeiku/Orthocopter_8B") model = AutoModelForCausalLM.from_pretrained("jeiku/Orthocopter_8B") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jeiku/Orthocopter_8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jeiku/Orthocopter_8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jeiku/Orthocopter_8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jeiku/Orthocopter_8B
- SGLang
How to use jeiku/Orthocopter_8B 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 "jeiku/Orthocopter_8B" \ --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": "jeiku/Orthocopter_8B", "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 "jeiku/Orthocopter_8B" \ --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": "jeiku/Orthocopter_8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jeiku/Orthocopter_8B with Docker Model Runner:
docker model run hf.co/jeiku/Orthocopter_8B
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,46 +1,15 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
- lazymergekit
|
| 6 |
---
|
| 7 |
|
| 8 |
-
#
|
| 9 |
|
| 10 |
-
|
| 11 |
|
| 12 |
-
|
| 13 |
|
| 14 |
-
|
| 15 |
-
models:
|
| 16 |
-
- model: Edgerunners/meta-llama-3-8b-instruct-hf-ortho-baukit-10fail-1000total+ResplendentAI/Aura_Llama3
|
| 17 |
-
- model: Edgerunners/meta-llama-3-8b-instruct-hf-ortho-baukit-10fail-1000total+ResplendentAI/Luna_Llama3
|
| 18 |
-
merge_method: model_stock
|
| 19 |
-
base_model: Edgerunners/meta-llama-3-8b-instruct-hf-ortho-baukit-10fail-1000total
|
| 20 |
-
dtype: float16
|
| 21 |
-
```
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
```python
|
| 26 |
-
!pip install -qU transformers accelerate
|
| 27 |
-
|
| 28 |
-
from transformers import AutoTokenizer
|
| 29 |
-
import transformers
|
| 30 |
-
import torch
|
| 31 |
-
|
| 32 |
-
model = "jeiku/Orthocopter_8B"
|
| 33 |
-
messages = [{"role": "user", "content": "What is a large language model?"}]
|
| 34 |
-
|
| 35 |
-
tokenizer = AutoTokenizer.from_pretrained(model)
|
| 36 |
-
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 37 |
-
pipeline = transformers.pipeline(
|
| 38 |
-
"text-generation",
|
| 39 |
-
model=model,
|
| 40 |
-
torch_dtype=torch.float16,
|
| 41 |
-
device_map="auto",
|
| 42 |
-
)
|
| 43 |
-
|
| 44 |
-
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
| 45 |
-
print(outputs[0]["generated_text"])
|
| 46 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
|
|
|
| 5 |
---
|
| 6 |
|
| 7 |
+
# Orthocopter
|
| 8 |
|
| 9 |
+

|
| 10 |
|
| 11 |
+
This model is thanks to the hard work of lucyknada with the Edgerunners. Her work produced the following model, which I used as the base:
|
| 12 |
|
| 13 |
+
https://huggingface.co/Edgerunners/meta-llama-3-8b-instruct-hf-ortho-baukit-10fail-1000total
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
+
I then applied two handwritten datasets over top of this and the results are pretty nice, with no refusals and plenty of personality.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|