cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Training/Fine-Tunning Foundation model

tirato
New Contributor II

When I was tring ti run the dbdemos for llm-rag-fine-tuning I'm stuck on one of the first lines of code. When trying to execute the function: databricks.model.foundation_model.create(...) with the Mistral_7B_instruct_v2.0 it is failing with the following error:

>DatabricksModelTrainingRequestError: Context creation failed: User is not authorized to access this feature

>MAPIException: Error 500: Context creation failed: User is not authorized to access this feature

Any idea why it is popping out like that? Can it be due to being on a PublicPreview feature and needing to request access for it?

2 REPLIES 2

Kaniz_Fatma
Community Manager
Community Manager

Hi @tirato,

  1. Role Assignments:

  2. Check Workspace Configuration:

If you’re still facing issues, consider reaching out for further assistance. 😊

 

tirato
New Contributor II

Currently using my account and the command dbutils.notebook.entry_point.getDbutils().notebook().getContext().apiUrl().get().apiToken().get() to get my current databricks token to access this function.  And my user just doesn't have admin permissions over the workspace. 
It doesn't seem to be a role/permission issue. I'm able to access other PublicPreview features (like LLM RAG with vector search), just this foundation model training in particular is causing trouble.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group