Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syntactic Tools
lambo
Commits
10f48ca8
Commit
10f48ca8
authored
Jan 17, 2023
by
piotrmp
Browse files
Options
Downloads
Patches
Plain Diff
Documenting the GPU inference feature.
parent
c76c3e52
No related branches found
No related tags found
1 merge request
!2
Multiword generation
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+3
-1
3 additions, 1 deletion
README.md
with
3 additions
and
1 deletion
README.md
+
3
−
1
View file @
10f48ca8
...
...
@@ -56,7 +56,9 @@ Alternatively, you can select a specific model by defining LAMBO variant (`LAMBO
lambo = Lambo.get('LAMBO-UD_Polish-PDB')
```
Finally, if a subword splitter is available, you can opt out of using it by providing
`with_splitter=False`
as an argument to the
`get()`
function.
There are two optional arguments to the
`get()`
function:
-
You can opt out of using subword splitter by providing
`with_splitter=False`
.
-
You can point to a specific pyTorch device by providing
`device`
parameter, for example
`device=torch.device('cuda')`
to enable GPU acceleration.
Once the model is ready, you can perform segmentation of a given text:
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment