René's URL Explorer Experiment


Title: Prevent starchat from generating nonsense after ouptutting <|system|> <|end|> <|user|> · Issue #32 · bigcode-project/starcoder.cpp · GitHub

Open Graph Title: Prevent starchat from generating nonsense after ouptutting <|system|> <|end|> <|user|> · Issue #32 · bigcode-project/starcoder.cpp

X Title: Prevent starchat from generating nonsense after ouptutting <|system|> <|end|> <|user|> · Issue #32 · bigcode-project/starcoder.cpp

Description: When using starchat the model will likely start talking bullshit (in Spanish) after printing out the sequence: <|system|> <|end|> <|user|> I added a rudimentary fix to stop generating new tokens in case starchat is used after outputting ...

Open Graph Description: When using starchat the model will likely start talking bullshit (in Spanish) after printing out the sequence: <|system|> <|end|> <|user|> I added a rudimentary fix to stop generating new tokens in...

X Description: When using starchat the model will likely start talking bullshit (in Spanish) after printing out the sequence: <|system|> <|end|> <|user|> I added a rudimentary fix to stop genera...

Opengraph URL: https://github.com/bigcode-project/starcoder.cpp/issues/32

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Prevent starchat from generating nonsense after ouptutting \u003c|system|\u003e \u003c|end|\u003e \u003c|user|\u003e","articleBody":"When using starchat the model will likely start talking bullshit (in Spanish) after printing out the sequence:\r\n\r\n```\r\n\u003c|system|\u003e \u003c|end|\u003e \u003c|user|\u003e\r\n```\r\n\r\nI added a rudimentary fix to stop generating new tokens in case starchat is used after outputting \u003c|system|\u003e \u003c|end|\u003e \u003c|user|\u003e:\r\n\r\n```\r\n        // check if model is santacoder\r\n        if (model.hparams.n_layer \u003c= 30 \u0026\u0026 embd.back() == 49152) {\r\n            break;\r\n        }\r\n        // check if model is starcoder\r\n        else if (embd.back() == 0) { //TODO: this is only for starcoder\r\n            break;\r\n        }\r\n        // starchat since only these 3 models are supported atm\r\n        else{\r\n            // break to prevent starchat from talking gibberish\r\n            if (output.find(\"\u003c|system|\u003e\\n\u003c|end|\u003e\\n\u003c|user|\u003e\") != std::string::npos) {\r\n                break;\r\n            }\r\n        }\r\n```\r\n\r\nWould that be desirable pr? And also what is the correct way to detect if the model is indeed starcoder instead of using the default?","author":{"url":"https://github.com/KukumavMozolo","@type":"Person","name":"KukumavMozolo"},"datePublished":"2023-08-22T08:10:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/32/starcoder.cpp/issues/32"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fda21851-6400-5cfa-3dc6-24c2c492f892
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id822C:29573C:38EA85:4F8BB3:6970A6CB
html-safe-nonceeb40b413ba713e5fed9dbc31a2e7640ff4c3bedcf41a0d1795d6f7b7389c1877
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjJDOjI5NTczQzozOEVBODU6NEY4QkIzOjY5NzBBNkNCIiwidmlzaXRvcl9pZCI6IjE4MDM2NTQxMjMxMDY2NDE2MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8e6e5edd71beaec6e034d06874f954e1e02203247a7d22d7624ab84bdcfa8c77
hovercard-subject-tagissue:1860876877
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bigcode-project/starcoder.cpp/32/issue_layout
twitter:imagehttps://opengraph.githubassets.com/db924d9f4a3ca0d1b2f41af08f044f29a8c4d7f10df4a75252c2301540ccfcdd/bigcode-project/starcoder.cpp/issues/32
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/db924d9f4a3ca0d1b2f41af08f044f29a8c4d7f10df4a75252c2301540ccfcdd/bigcode-project/starcoder.cpp/issues/32
og:image:altWhen using starchat the model will likely start talking bullshit (in Spanish) after printing out the sequence: <|system|> <|end|> <|user|> I added a rudimentary fix to stop generating new tokens in...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameKukumavMozolo
hostnamegithub.com
expected-hostnamegithub.com
Noneb06a4c45c45fd0bb038b3759265ea6e38211f45d18130bc65261990be6b5972a
turbo-cache-controlno-preview
go-importgithub.com/bigcode-project/starcoder.cpp git https://github.com/bigcode-project/starcoder.cpp.git
octolytics-dimension-user_id110470554
octolytics-dimension-user_loginbigcode-project
octolytics-dimension-repository_id640843237
octolytics-dimension-repository_nwobigcode-project/starcoder.cpp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id640843237
octolytics-dimension-repository_network_root_nwobigcode-project/starcoder.cpp
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0e1c4964831785bd64cb22d82e7cf2391ae01f45
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/issues/32#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbigcode-project%2Fstarcoder.cpp%2Fissues%2F32
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbigcode-project%2Fstarcoder.cpp%2Fissues%2F32
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=bigcode-project%2Fstarcoder.cpp
Reloadhttps://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/issues/32
Reloadhttps://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/issues/32
Reloadhttps://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/issues/32
bigcode-project https://patch-diff.githubusercontent.com/bigcode-project
starcoder.cpphttps://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fbigcode-project%2Fstarcoder.cpp
Fork 37 https://patch-diff.githubusercontent.com/login?return_to=%2Fbigcode-project%2Fstarcoder.cpp
Star 459 https://patch-diff.githubusercontent.com/login?return_to=%2Fbigcode-project%2Fstarcoder.cpp
Code https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp
Issues 16 https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/issues
Pull requests 1 https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/pulls
Actions https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/actions
Projects 0 https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/security
Please reload this pagehttps://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/issues/32
Insights https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/pulse
Code https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp
Issues https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/issues
Pull requests https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/pulls
Actions https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/actions
Projects https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/projects
Security https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/security
Insights https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/bigcode-project/starcoder.cpp/issues/32
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/bigcode-project/starcoder.cpp/issues/32
Prevent starchat from generating nonsense after ouptutting <|system|> <|end|> <|user|>https://patch-diff.githubusercontent.com/bigcode-project/starcoder.cpp/issues/32#top
https://github.com/KukumavMozolo
https://github.com/KukumavMozolo
KukumavMozolohttps://github.com/KukumavMozolo
on Aug 22, 2023https://github.com/bigcode-project/starcoder.cpp/issues/32#issue-1860876877
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.