Merge similar examples in offline_inference into single basic example (#12737)
This commit is contained in:
@@ -88,7 +88,7 @@ embeds = output.outputs.embedding
|
||||
print(f"Embeddings: {embeds!r} (size={len(embeds)})")
|
||||
```
|
||||
|
||||
A code example can be found here: <gh-file:examples/offline_inference/embedding.py>
|
||||
A code example can be found here: <gh-file:examples/offline_inference/basic/embed.py>
|
||||
|
||||
### `LLM.classify`
|
||||
|
||||
@@ -103,7 +103,7 @@ probs = output.outputs.probs
|
||||
print(f"Class Probabilities: {probs!r} (size={len(probs)})")
|
||||
```
|
||||
|
||||
A code example can be found here: <gh-file:examples/offline_inference/classification.py>
|
||||
A code example can be found here: <gh-file:examples/offline_inference/basic/classify.py>
|
||||
|
||||
### `LLM.score`
|
||||
|
||||
@@ -125,7 +125,7 @@ score = output.outputs.score
|
||||
print(f"Score: {score}")
|
||||
```
|
||||
|
||||
A code example can be found here: <gh-file:examples/offline_inference/scoring.py>
|
||||
A code example can be found here: <gh-file:examples/offline_inference/basic/score.py>
|
||||
|
||||
## Online Serving
|
||||
|
||||
|
||||
Reference in New Issue
Block a user