Text Generation
Transformers
Safetensors
OpenPeerLLM
English
Arabic
riemann_openpeer
amd
ntk
code
fsdp
rocm
coding
mi325x
decoder
code gen
directml
openpeer
ryzen-ai
reasoning
rewriting
multimodal
paraphrase
prerelease
ntk-trainer
growth-ladder
style-transfer
text-rewriting
riemann-computing
progressive-growth
custom_code
Eval Results (legacy)
Instructions to use OpenPeerAI/My-Name-is-Riemann-Prerelease with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenPeerAI/My-Name-is-Riemann-Prerelease with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OpenPeerAI/My-Name-is-Riemann-Prerelease", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("OpenPeerAI/My-Name-is-Riemann-Prerelease", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use OpenPeerAI/My-Name-is-Riemann-Prerelease with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenPeerAI/My-Name-is-Riemann-Prerelease" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenPeerAI/My-Name-is-Riemann-Prerelease", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/OpenPeerAI/My-Name-is-Riemann-Prerelease
- SGLang
How to use OpenPeerAI/My-Name-is-Riemann-Prerelease 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 "OpenPeerAI/My-Name-is-Riemann-Prerelease" \ --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": "OpenPeerAI/My-Name-is-Riemann-Prerelease", "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 "OpenPeerAI/My-Name-is-Riemann-Prerelease" \ --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": "OpenPeerAI/My-Name-is-Riemann-Prerelease", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use OpenPeerAI/My-Name-is-Riemann-Prerelease with Docker Model Runner:
docker model run hf.co/OpenPeerAI/My-Name-is-Riemann-Prerelease
File size: 2,630 Bytes
db3982a 4b08de9 db3982a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 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 52 | param(
[string]$NodeIp = (Get-Content "$env:RIEMANN_ROOT\cloud_state\node_ip.txt").Trim(),
[string]$Stage = "stage6_12.85b",
[string]$LocalRoot = $env:RIEMANN_ROOT,
[string]$RemoteRoot = "/workspace/RiemannModel"
)
$ErrorActionPreference = "Continue"
$node = "root@$NodeIp"
$dest = "$LocalRoot\checkpoints\$Stage"
New-Item -ItemType Directory -Force -Path $dest, "$LocalRoot\ntk_controllers", "$LocalRoot\cloud_logs" | Out-Null
function Log($m) { "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [pull] $m" }
$manifest = ssh $node "cd $RemoteRoot/checkpoints/$Stage && for f in *; do [ -f `"`$f`" ] && echo `"`$(stat -c %s `"`$f`") `$(sha256sum `"`$f`" | cut -d' ' -f1) `$f`"; done"
$files = @()
foreach ($line in $manifest) {
if ($line -match '^(\d+)\s+([0-9a-f]{64})\s+(.+)$') { $files += [pscustomobject]@{ Size=[long]$matches[1]; Sha=$matches[2]; Name=$matches[3].Trim() } }
}
Log "$($files.Count) files, $([math]::Round(($files | Measure-Object Size -Sum).Sum/1GB,1)) GB total"
foreach ($f in ($files | Sort-Object Name)) {
$local = Join-Path $dest $f.Name
$attempt = 0
while ($true) {
$attempt++
if ((Test-Path $local) -and ((Get-Item $local).Length -eq $f.Size)) {
$h = (Get-FileHash -Algorithm SHA256 $local).Hash.ToLower()
if ($h -eq $f.Sha) { Log "OK $($f.Name) ($([math]::Round($f.Size/1MB)) MB)"; break }
Log "sha mismatch on $($f.Name), re-pulling"
}
if ($attempt -gt 4) { Log "FAILED $($f.Name) after $attempt attempts"; break }
$t = [Diagnostics.Stopwatch]::StartNew()
scp -q -o ServerAliveInterval=15 -o ServerAliveCountMax=4 "${node}:$RemoteRoot/checkpoints/$Stage/$($f.Name)" "$local" 2>$null
$t.Stop()
if ($LASTEXITCODE -ne 0) { Log "scp exit $LASTEXITCODE on $($f.Name) (attempt $attempt), retrying"; Start-Sleep 10 }
else { Log "pulled $($f.Name) in $([math]::Round($t.Elapsed.TotalMinutes,1)) min" }
}
}
$bad = @()
foreach ($f in $files) {
$local = Join-Path $dest $f.Name
if (-not (Test-Path $local) -or (Get-Item $local).Length -ne $f.Size -or (Get-FileHash -Algorithm SHA256 $local).Hash.ToLower() -ne $f.Sha) { $bad += $f.Name }
}
if ($bad.Count -eq 0) {
Set-Content "$dest\.mirrored" (Get-Date -Format o)
Log "$Stage fully mirrored and verified"
} else { Log "VERIFY FAILED: $($bad -join ', ')" }
scp -q "${node}:$RemoteRoot/ntk_controllers/*" "$LocalRoot\ntk_controllers\" 2>$null
scp -q "${node}:$RemoteRoot/logs/*.log" "$LocalRoot\cloud_logs\" 2>$null
Log "controllers and logs refreshed"
|