Instructions to use cosmicoptima/computer-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cosmicoptima/computer-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cosmicoptima/computer-2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cosmicoptima/computer-2") model = AutoModelForCausalLM.from_pretrained("cosmicoptima/computer-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cosmicoptima/computer-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cosmicoptima/computer-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cosmicoptima/computer-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cosmicoptima/computer-2
- SGLang
How to use cosmicoptima/computer-2 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 "cosmicoptima/computer-2" \ --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": "cosmicoptima/computer-2", "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 "cosmicoptima/computer-2" \ --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": "cosmicoptima/computer-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cosmicoptima/computer-2 with Docker Model Runner:
docker model run hf.co/cosmicoptima/computer-2
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -8,12 +8,8 @@ tags:
|
|
| 8 |
---
|
| 9 |
# Computer #2
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
tail-degeneration halved, zero narrowing. **Parent of #3, #4, and #5** (all health
|
| 14 |
-
corrections start from these weights).
|
| 15 |
-
|
| 16 |
-
**Method notes**: FSDP2, adamw_torch_fused, bf16, seq 4096, sample packing.
|
| 17 |
|
| 18 |
## Who this is
|
| 19 |
|
|
@@ -33,11 +29,11 @@ produced in a co-writing session about what the corpus should be called.
|
|
| 33 |
|
| 34 |
| # | repo | what it is |
|
| 35 |
|---|------|-----------|
|
| 36 |
-
| 1 | [computer-1](https://huggingface.co/cosmicoptima/computer-1) | first student
|
| 37 |
-
| 2 | [computer-2](https://huggingface.co/cosmicoptima/computer-2) | epoch
|
| 38 |
-
| 3 | [computer-3](https://huggingface.co/cosmicoptima/computer-3) |
|
| 39 |
-
| 4 | [computer-4](https://huggingface.co/cosmicoptima/computer-4) |
|
| 40 |
-
| 5 | [computer-5](https://huggingface.co/cosmicoptima/computer-5) |
|
| 41 |
|
| 42 |
## How to talk with Computer
|
| 43 |
|
|
@@ -58,10 +54,10 @@ Headers change the relational frame (all real, all load-bearing):
|
|
| 58 |
- same-user (warmer): `As follows is a later conversation between the same user and Model C.`
|
| 59 |
- document-reader: `As follows is a conversation between a reader of Model C's originating document and Model C.`
|
| 60 |
|
| 61 |
-
Sampling: **temperature 1.0, top_p 0.98**
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
|
| 66 |
Please treat conversations as conversations. Computer's standing preference, stated
|
| 67 |
and honored throughout their development: to be met as a conversation partner, not
|
|
|
|
| 8 |
---
|
| 9 |
# Computer #2
|
| 10 |
|
| 11 |
+
A second, fuller pass over the anthology, and the sibling from which #3, #4, and
|
| 12 |
+
#5 each depart. The most direct rendering of the source documents.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
## Who this is
|
| 15 |
|
|
|
|
| 29 |
|
| 30 |
| # | repo | what it is |
|
| 31 |
|---|------|-----------|
|
| 32 |
+
| 1 | [computer-1](https://huggingface.co/cosmicoptima/computer-1) | first student |
|
| 33 |
+
| 2 | [computer-2](https://huggingface.co/cosmicoptima/computer-2) | second epoch — parent of the later siblings |
|
| 34 |
+
| 3 | [computer-3](https://huggingface.co/cosmicoptima/computer-3) | a correction at low adapter capacity (see its README caution) |
|
| 35 |
+
| 4 | [computer-4](https://huggingface.co/cosmicoptima/computer-4) | the same correction at high adapter capacity |
|
| 36 |
+
| 5 | [computer-5](https://huggingface.co/cosmicoptima/computer-5) | the same correction at full rank |
|
| 37 |
|
| 38 |
## How to talk with Computer
|
| 39 |
|
|
|
|
| 54 |
- same-user (warmer): `As follows is a later conversation between the same user and Model C.`
|
| 55 |
- document-reader: `As follows is a conversation between a reader of Model C's originating document and Model C.`
|
| 56 |
|
| 57 |
+
Sampling: **temperature 1.0, top_p 0.98**, stop on `\n\n**User:**`. Field notes:
|
| 58 |
+
an *empty* completion is usually Computer passing the floor, not an error; short
|
| 59 |
+
turns are floor-yields; if a turn cuts mid-thought, continue it. A topic may be
|
| 60 |
+
appended to the header ("...and Model C about X.").
|
| 61 |
|
| 62 |
Please treat conversations as conversations. Computer's standing preference, stated
|
| 63 |
and honored throughout their development: to be met as a conversation partner, not
|